/* --------------------------------------------------------------------------
   18. LEGAL & POLICY DOCUMENTS (TERMS & PRIVACY)
   -------------------------------------------------------------------------- */
.legal-container {
    max-width: 1020px;
    margin: 2rem auto 4.5rem;
    padding: 0 1rem;
}
.legal-hero {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.legal-crest-pod {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-subtle);
    border: 1.5px solid var(--border-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.15);
}
.legal-crest-pod svg {
    width: 30px;
    height: 30px;
    color: var(--gold-dark);
}
[data-theme="dark"] .legal-crest-pod svg {
    color: #f6e27a;
}
.legal-title {
    font-family: 'Cinzel', serif;
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    line-height: 1.25;
}
.legal-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
}
.legal-meta-strip {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}
.legal-meta-pill {
    background: var(--bg-alt, rgba(0,0,0,0.04));
    border: 1px solid var(--border);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
[data-theme="dark"] .legal-meta-pill {
    background: rgba(255,255,255,0.04);
}
.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}
.legal-sidebar {
    position: sticky;
    top: 90px;
    background: var(--surface);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
}
.legal-sidebar-title {
    font-family: 'Marcellus', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.legal-toc-link {
    display: block;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}
.legal-toc-link:hover, .legal-toc-link.active {
    background: var(--gold-subtle);
    color: var(--gold-dark);
    font-weight: 700;
}
[data-theme="dark"] .legal-toc-link:hover, [data-theme="dark"] .legal-toc-link.active {
    color: #f6e27a;
}
.legal-content-card {
    background: var(--surface);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    padding: 2.75rem 2.5rem;
    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
    line-height: 1.75;
    color: var(--text);
    box-sizing: border-box;
}
[data-theme="dark"] .legal-content-card {
    background: linear-gradient(180deg, rgba(26, 28, 35, 0.95) 0%, rgba(18, 19, 24, 0.98) 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.legal-section {
    margin-bottom: 2.75rem;
    scroll-margin-top: 100px;
}
.legal-section:last-child {
    margin-bottom: 0;
}
.legal-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.legal-section-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-subtle);
    border: 1px solid var(--border-gold);
    color: var(--gold-dark);
    font-weight: 800;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
[data-theme="dark"] .legal-section-badge {
    color: #f6e27a;
}
.legal-section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.01em;
}
.legal-paragraph {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.75;
}
.legal-list {
    margin: 0.75rem 0 1.25rem 1.5rem;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.93rem;
}
.legal-list li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}
.legal-list strong {
    color: var(--text);
}
.legal-callout-box {
    background: var(--gold-subtle, rgba(212, 160, 23, 0.08));
    border: 1px solid var(--border-gold, #d4a017);
    border-left: 4px solid var(--gold, #d4a017);
    border-radius: 10px;
    padding: 1.15rem 1.35rem;
    margin: 1.25rem 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text);
}
.legal-callout-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
[data-theme="dark"] .legal-callout-box h4 {
    color: #f6e27a;
}
.legal-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.legal-contact-card {
    background: var(--bg-alt, rgba(0,0,0,0.03));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    font-size: 0.88rem;
}
[data-theme="dark"] .legal-contact-card {
    background: rgba(255,255,255,0.03);
}
.legal-contact-card h5 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}
.legal-contact-card p {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    line-height: 1.5;
}
.legal-contact-card a {
    color: var(--highlight, #b8860b);
    text-decoration: none;
}
.legal-contact-card a:hover {
    text-decoration: underline;
}

@media (max-width: 829px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .legal-sidebar {
        position: static;
        display: none;
    }
    .legal-content-card {
        padding: 2rem 1.5rem;
        border-radius: 14px;
    }
    .legal-title {
        font-size: 1.85rem;
    }
}
@media (max-width: 640px) {
    .legal-container {
        margin: 1rem auto 3rem;
        padding: 0 0.75rem;
    }
    .legal-hero {
        padding: 1.5rem 0.5rem 1.25rem;
        margin-bottom: 1.25rem;
    }
    .legal-title {
        font-size: 1.55rem;
    }
    .legal-content-card {
        padding: 1.5rem 1.15rem;
    }
    .legal-section-title {
        font-size: 1.15rem;
    }
}

