/* ==========================================================================
   Legal Pages (Privacy Policy, Terms of Service, etc.)
   Editorial Design System
   - DM Serif Display for headings
   - JetBrains Mono for eyebrow labels and badges
   - Dark navy hero (#0f172a)
   - Accent blue (#60a5fa)
   - Muted text (#94a3b8)
   - 2px border-radius
   ========================================================================== */

/* Hero Section
   ========================================================================== */

.legal-hero {
    background: #0f172a;
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #60a5fa, transparent);
}

.legal-hero .eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 1.25rem;
    display: block;
}

.legal-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.legal-hero .subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Area
   ========================================================================== */

.legal-content-wrap {
    background: #ffffff;
    padding: 4rem 0 5rem;
}

.legal-content {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Effective Date Badge
   ========================================================================== */

.effective-date {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 2px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 3rem;
    letter-spacing: 0.03em;
}

/* Section Headings
   ========================================================================== */

.legal-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.65rem;
    font-weight: 400;
    color: #0f172a;
    margin: 3rem 0 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    line-height: 1.3;
}

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

/* Gradient separator between sections */
.legal-content .section-divider {
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, transparent);
    border: none;
    margin: 2.5rem 0;
    border-radius: 2px;
}

/* Body Text
   ========================================================================== */

.legal-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.25rem;
}

.legal-content strong {
    color: #0f172a;
    font-weight: 600;
}

.legal-content a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.3);
    transition: border-color 0.2s ease;
}

.legal-content a:hover {
    border-bottom-color: #60a5fa;
}

/* Bullet Lists (editorial style)
   ========================================================================== */

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.legal-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60a5fa;
}

/* Contact Info Block
   ========================================================================== */

.legal-content .contact-block {
    background: #f8fafc;
    border-left: 3px solid #60a5fa;
    border-radius: 2px;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

.legal-content .contact-block p {
    margin-bottom: 0;
    line-height: 2;
}

/* Back to Home Link
   ========================================================================== */

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: #60a5fa;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.legal-back:hover {
    color: #3b82f6;
}

.legal-back .arrow {
    transition: transform 0.2s ease;
}

.legal-back:hover .arrow {
    transform: translateX(-3px);
}

/* Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .legal-hero {
        padding: 3.5rem 1.5rem 3rem;
    }

    .legal-hero h1 {
        font-size: 2.25rem;
    }

    .legal-hero .subtitle {
        font-size: 1rem;
    }

    .legal-content-wrap {
        padding: 3rem 0 4rem;
    }

    .legal-content {
        padding: 0 1.5rem;
    }

    .legal-content h2 {
        font-size: 1.4rem;
        margin: 2.5rem 0 1rem;
        padding-top: 1.5rem;
    }

    .legal-content p,
    .legal-content ul li {
        font-size: 1rem;
    }

    .legal-content .contact-block {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-hero {
        padding: 2.5rem 1.25rem 2rem;
    }

    .legal-hero h1 {
        font-size: 1.85rem;
    }

    .legal-content {
        padding: 0 1.25rem;
    }

    .effective-date {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
}
