/* =============================================
   VERTEX RP — Rules Section
   ============================================= */

.rules {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 100%);
}

.rules-container {
    max-width: 880px;
    margin: 0 auto;
}

.rule-item {
    padding: 22px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all var(--duration-normal);
    user-select: none;
}

.rule-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.rule-item.open {
    border-color: var(--border-hover);
}

/* Header row */
.rule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rule-header h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 14px;
}

.rule-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--accent-glow-subtle);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rule-toggle {
    color: var(--text-muted);
    transition: all 0.35s;
    flex-shrink: 0;
}

.rule-item.open .rule-toggle {
    transform: rotate(180deg);
    color: var(--accent);
}

/* Expandable content */
.rule-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease-out);
}

.rule-item.open .rule-content {
    max-height: 200px;
}

.rule-content p {
    padding: 16px 0 6px 48px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: 300;
}
