@layer pages {
/* ============================================
   Legal Page Styles (Terms of Service, Privacy Policy)
   Clean, readable layout for legal content
   ============================================ */

/* --- Legal Page Container --- */
.legal-page {
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
}

.legal-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    flex: 1;
}

/* --- Page Title --- */
.legal-content h1 {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
    letter-spacing: -0.02em;
}

.legal-meta {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-10);
}

/* --- Section Headings --- */
.legal-content h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--space-10) 0 var(--space-4) 0;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-content h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-6) 0 var(--space-3) 0;
}

/* --- Body Text --- */
.legal-content p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 var(--space-4) 0;
}

/* --- Lists --- */
.legal-content ul,
.legal-content ol {
    margin: 0 0 var(--space-4) 0;
    padding-left: var(--space-6);
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-content li {
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
}

/* --- Links --- */
.legal-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-content a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* --- Back Link --- */
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--accent);
    text-decoration: none;
    margin-bottom: var(--space-6);
    transition: color var(--transition-fast);
}

.legal-back:hover {
    color: var(--accent-hover);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .legal-content {
        padding: var(--space-6) var(--space-4);
    }

    .legal-content h1 {
        font-size: var(--text-2xl);
    }

    .legal-content h2 {
        font-size: var(--text-lg);
    }
}

/* --- Reduced motion support --- */
@media (prefers-reduced-motion: reduce) {
    .legal-content * {
        transition: none !important;
    }
}

} /* end @layer pages */
