/* ==========================================================================
   Legal Pages (Terms of Service, Privacy Policy)
   Readable prose layout for legal content.
   Uses design-system.css variables from scaffold layout.
   ========================================================================== */

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Page Header */
.legal-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}

.legal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #e8e8f0);
    margin-bottom: 0.5rem;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--text-muted, #6b6b80);
}

/* Section Styling */
.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #e8e8f0);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
}

.legal-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary, #b8b8c8);
    margin-bottom: 0.75rem;
}

.legal-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section ul li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary, #b8b8c8);
    margin-bottom: 0.35rem;
}

.legal-section a {
    color: var(--neon-blue, #4A9EFF);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-section a:hover {
    color: var(--text-primary, #e8e8f0);
}

/* Contact block at bottom */
.legal-contact {
    margin-top: 2.5rem;
    padding: 1.25rem;
    background: var(--bg-card, #16161d);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    border-radius: 8px;
}

.legal-contact p {
    font-size: 0.9rem;
    color: var(--text-secondary, #b8b8c8);
    margin: 0;
    line-height: 1.6;
}

.legal-contact a {
    color: var(--neon-blue, #4A9EFF);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Cross-link between terms/privacy */
.legal-crosslink {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    font-size: 0.9rem;
    color: var(--text-muted, #6b6b80);
}

.legal-crosslink a {
    color: var(--neon-blue, #4A9EFF);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 600px) {
    .legal-page {
        padding: 2rem 1rem;
    }

    .legal-title {
        font-size: 1.6rem;
    }

    .legal-section h2 {
        font-size: 1.1rem;
    }
}
