/* =========================================================
   legal_new.css — Page-specific styles for Legal & Policies
   Reuses global.css tokens and dashboard.css layout classes.
   Only styles that are EXCLUSIVE to this page live here.
   ========================================================= */

/* ── Legal Card ─────────────────────────────────────────── */
.legal-card {
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin-bottom: 24px;
}

/* ── Tab Panes ──────────────────────────────────────────── */
.legal-tab-pane {
    display: none;
    animation: legalFadeIn var(--transition-slow) ease;
}

.legal-tab-pane.active {
    display: block;
}

@keyframes legalFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Document Header ─────────────────────────────────────── */
.legal-document-title {
    color: var(--on-surface);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.3;
}

.legal-document-meta {
    font-size: 13px;
    color: var(--outline);
    font-weight: 500;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--outline-variant);
    padding-bottom: 16px;
}

/* ── Document Body Typography ───────────────────────────── */
.legal-tab-pane h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--on-surface);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-tab-pane h2:first-of-type {
    margin-top: 0;
}

.legal-tab-pane h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--on-surface);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-tab-pane p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--on-surface-variant);
    margin-bottom: 16px;
    margin-top: 10px;
}

.legal-tab-pane ul,
.legal-tab-pane ol {
    padding-left: 20px;
    margin-bottom: 20px;
    list-style-type: disc;
}

.legal-tab-pane ol {
    list-style-type: decimal;
}

.legal-tab-pane li {
    font-size: 14px;
    line-height: 1.65;
    color: var(--on-surface-variant);
    margin-bottom: 10px;
}

.legal-tab-pane strong {
    color: var(--on-surface);
    font-weight: 600;
}

.legal-tab-pane a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Empty State ─────────────────────────────────────────── */
.legal-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--on-surface-variant);
}

.legal-empty .material-symbols-outlined {
    font-size: 48px;
    color: var(--outline);
    display: block;
    margin-bottom: 12px;
}

.legal-empty p {
    font-size: 14px;
    color: var(--outline);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .legal-card {
        padding: 20px 16px;
    }

    .legal-document-title {
        font-size: 18px;
    }

    .legal-tab-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}