/* ========================================
   LEGAL PAGES - Privacy Policy, Terms & Conditions
   Shares landing-page theme variables
   ======================================== */

.legal-content {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: calc(100vh - 200px);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--landing-border, rgba(0, 0, 0, 0.1));
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--landing-text-primary, #333);
    margin-bottom: 0.5rem;
}

.legal-effective-date {
    color: var(--landing-text-muted, #666);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.legal-subtitle {
    color: var(--landing-text-secondary, #555);
    font-size: 0.9rem;
    max-width: 700px;
    margin: 0.5rem auto 0;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--landing-text-secondary, #555);
}

.legal-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--landing-text-primary, #333);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--landing-border, rgba(0, 0, 0, 0.08));
}

.legal-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--landing-text-primary, #333);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-body p {
    margin-bottom: 1rem;
}

.legal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-body ul li {
    margin-bottom: 0.5rem;
}

.legal-body a {
    color: var(--landing-accent, #3B7EA1);
    text-decoration: none;
}

.legal-body a:hover {
    text-decoration: underline;
}

.legal-body .contact-list {
    list-style: none;
    padding-left: 0;
}

.legal-body .contact-list li {
    margin-bottom: 0.5rem;
}

/* Table of Contents */
.legal-toc {
    background: var(--landing-bg-secondary, #f8f9fa);
    border: 1px solid var(--landing-border, rgba(0, 0, 0, 0.08));
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.legal-toc h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.legal-toc ol {
    margin-bottom: 0;
    padding-left: 1.25rem;
    columns: 2;
    column-gap: 2rem;
}

.legal-toc ol li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    break-inside: avoid;
}

.legal-body hr {
    border-color: var(--landing-border, rgba(0, 0, 0, 0.08));
    margin: 2rem 0;
}

/* Scroll offset for anchor links (accounts for fixed nav) */
.legal-body h2[id] {
    scroll-margin-top: 80px;
}

/* Dark theme adjustments */
[data-theme="midnight-dark"] .legal-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="midnight-dark"] .legal-body h2 {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="midnight-dark"] .legal-toc {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="midnight-dark"] .legal-body hr {
    border-color: rgba(255, 255, 255, 0.06);
}

/* Responsive - single column TOC on mobile */
@media (max-width: 768px) {
    .legal-toc ol {
        columns: 1;
    }

    .legal-header h1 {
        font-size: 2rem;
    }
}
