﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-deep: #1a3a6e;
    --blue-mid: #2272b8;
    --blue-light: #5bb8f5;
    --blue-pale: #e8f5fe;
    --blue-wash: #f0faff;
    --accent: #f7c948;
    --white: #ffffff;
    --text-body: #3a5068;
    --transition: 0.26s cubic-bezier(.4,0,.2,1);
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--blue-wash);
    color: var(--text-body);
}

/* ═══════════════════════════════════════════════
       PRIVACY SECTION
       ═══════════════════════════════════════════════ */
.privacy {
    padding: 100px 24px 120px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

    .privacy::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 55% 40% at 95% 5%, rgba(91,184,245,0.07) 0%, transparent 70%), radial-gradient(ellipse 40% 35% at 0% 95%, rgba(34,114,184,0.05) 0%, transparent 70%);
        pointer-events: none;
    }

.privacy-inner {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.privacy-header {
    margin-bottom: 52px;
}

.privacy-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-mid);
    background: var(--blue-pale);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.privacy-title {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 900;
    color: var(--blue-deep);
    line-height: 1.15;
    margin-bottom: 14px;
}

    .privacy-title span {
        color: var(--blue-mid);
    }

.privacy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
}

.privacy-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-body);
    opacity: 0.7;
}

    .privacy-meta-item svg {
        width: 14px;
        height: 14px;
        stroke: var(--blue-mid);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        opacity: 0.8;
    }

/* ── Two-column layout: TOC + content ── */
.privacy-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

/* ── Table of contents (sticky sidebar) ── */
.privacy-toc {
    position: sticky;
    top: 96px; /* clears the navbar */
}

.toc-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-mid);
    margin-bottom: 12px;
    display: block;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .toc-list a {
        display: block;
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--text-body);
        text-decoration: none;
        padding: 7px 12px;
        border-radius: 10px;
        border-left: 3px solid transparent;
        line-height: 1.35;
        transition: background var(--transition), color var(--transition), border-color var(--transition);
        opacity: 0.75;
    }

        .toc-list a:hover,
        .toc-list a.active {
            background: var(--blue-pale);
            color: var(--blue-mid);
            border-left-color: var(--blue-mid);
            opacity: 1;
        }

/* ── Policy content ── */
.privacy-content {
    min-width: 0; /* prevent grid blowout */
}

/* Section block */
.policy-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 2px solid var(--blue-pale);
    opacity: 0;
    transform: translateY(16px);
}

    .policy-section.visible {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .policy-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.policy-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--blue-pale);
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--blue-mid);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.policy-section h2 {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--blue-deep);
    line-height: 1.2;
    margin-bottom: 16px;
}

.policy-section h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-deep);
    margin: 24px 0 10px;
}

.policy-section p {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.8;
    opacity: 0.88;
    margin-bottom: 12px;
}

    .policy-section p:last-child {
        margin-bottom: 0;
    }

.policy-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 14px;
}

    .policy-section ul li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 0.91rem;
        font-weight: 600;
        color: var(--text-body);
        line-height: 1.65;
        opacity: 0.88;
    }

        .policy-section ul li::before {
            content: '';
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--blue-light);
            margin-top: 8px;
            flex-shrink: 0;
        }

/* Highlighted callout boxes */
.policy-callout {
    background: var(--blue-pale);
    border-left: 4px solid var(--blue-mid);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue-deep);
    line-height: 1.6;
}

    .policy-callout.warn {
        background: #fffbeb;
        border-color: #f59e0b;
        color: #78350f;
    }

/* SMS opt-in/out highlight */
.sms-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0;
}

.sms-action-card {
    background: var(--blue-wash);
    border: 2px solid var(--blue-pale);
    border-radius: 14px;
    padding: 18px 16px;
    transition: border-color var(--transition), transform var(--transition);
}

    .sms-action-card:hover {
        border-color: var(--blue-light);
        transform: translateY(-2px);
    }

    .sms-action-card.optin {
        border-top: 4px solid var(--blue-mid);
    }

    .sms-action-card.optout {
        border-top: 4px solid #e5484d;
    }

.sms-action-title {
    font-size: 0.82rem;
    font-weight: 900;
    color: var(--blue-deep);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 10px;
}

.sms-action-card.optout .sms-action-title {
    color: #e5484d;
}

.sms-action-card ul {
    margin: 0;
}

/* Contact card at bottom of contact section */
.policy-contact-card {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
    border-radius: 20px;
    padding: 32px 28px;
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.contact-card-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-card-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-light);
    opacity: 0.8;
}

.contact-card-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition);
}

a.contact-card-value:hover {
    color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 780px) {
    .privacy-body {
        grid-template-columns: 1fr;
    }

    .privacy-toc {
        display: none;
    }
    /* hidden on mobile — TOC is too long */
    .sms-actions {
        grid-template-columns: 1fr;
    }

    .policy-contact-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .privacy {
        padding: 72px 16px 88px;
    }
}