/*
|--------------------------------------------------------------------------
| Legal & Custom Policy Pages (Privacy Policy, Terms & Conditions)
| Simple, wide single-section layout with rich text typography.
|--------------------------------------------------------------------------
*/

.legal-page {
    background: var(--bg, #F8FAFC);
    min-height: 80vh;
}

.legal-section {
    padding: 64px 0 104px;
}

@media (max-width: 640px) {
    .legal-section {
        padding: 36px 0 64px;
    }
}

.legal-wrap {
    max-width: 1040px;
    margin: 0 auto;
}

.legal-header {
    border-bottom: 1px solid var(--border, #E2E8F0);
    padding-bottom: 24px;
    margin-bottom: 36px;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 9999px;
    background: var(--card, #FFFFFF);
    border: 1px solid var(--border, #E2E8F0);
    color: var(--teal-dark, #0F766E);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.legal-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal, #14B8A6);
    display: inline-block;
}

.legal-title {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--heading, #0F172A);
    margin: 0 0 12px;
}

.legal-updated {
    font-size: 14.5px;
    color: var(--muted, #64748B);
    margin: 0;
}

/* ---------- Text Formatting / Content Typography ---------- */
.text-formatting {
    color: var(--body, #475569);
    font-size: 16.5px;
    line-height: 1.8;
    word-break: break-word;
}

.text-formatting > *:first-child {
    margin-top: 0 !important;
}

.text-formatting > *:last-child {
    margin-bottom: 0 !important;
}

.text-formatting h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--heading, #0F172A);
    margin-top: 44px;
    margin-bottom: 16px;
    line-height: 1.3;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border, #E2E8F0);
}

.text-formatting h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-2, #172033);
    margin-top: 28px;
    margin-bottom: 10px;
    line-height: 1.35;
}

.text-formatting h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-2, #172033);
    margin-top: 20px;
    margin-bottom: 8px;
}

.text-formatting p {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--body, #475569);
}

.text-formatting strong,
.text-formatting b {
    font-weight: 600;
    color: var(--heading, #0F172A);
}

.text-formatting em,
.text-formatting i {
    font-style: italic;
}

.text-formatting a {
    color: var(--teal-dark, #0F766E);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.text-formatting a:hover {
    color: var(--navy, #0B1220);
}

.text-formatting ul,
.text-formatting ol {
    margin-top: 0;
    margin-bottom: 22px;
    padding-left: 28px;
}

.text-formatting ul {
    list-style-type: disc;
}

.text-formatting ol {
    list-style-type: decimal;
}

.text-formatting li {
    margin-bottom: 9px;
    line-height: 1.75;
    color: var(--body, #475569);
}

.text-formatting li::marker {
    color: var(--teal, #14B8A6);
}

.text-formatting blockquote {
    border-left: 4px solid var(--teal, #14B8A6);
    background: var(--section, #F1F5F9);
    padding: 16px 22px;
    border-radius: 0 10px 10px 0;
    margin: 26px 0;
    color: var(--heading-2, #172033);
    font-style: italic;
}

.text-formatting hr {
    border: 0;
    height: 1px;
    background: var(--border, #E2E8F0);
    margin: 36px 0;
}

.text-formatting .contact-callout {
    background: var(--card, #FFFFFF);
    border: 1px solid var(--border, #E2E8F0);
    border-radius: var(--radius-md, 14px);
    padding: 24px 28px;
    margin-top: 36px;
    box-shadow: 0 4px 12px -4px rgba(11, 18, 32, 0.04);
}

.text-formatting .contact-callout h3 {
    margin-top: 0;
    color: var(--heading, #0F172A);
}

.text-formatting .contact-callout p {
    margin-bottom: 8px;
}

.text-formatting .contact-callout p:last-child {
    margin-bottom: 0;
}
