:root {
    --navy-blue: #0A2A4F;
    --navy-card: #0F3560;
    --yellow: #FFD400;
    --yellow-hover: #E6BF00;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F4F6F9;
    --text-black: #0F172A;
    --text-gray: #475569;
    --border-light: #E2E8F0;
}

.legal-main {
    background-color: var(--bg-white);
    color: var(--text-black);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== HERO BAND ==================== */
.legal-hero {
    background-color: var(--bg-light-gray);
    padding: 64px 0 52px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.legal-hero-inner {
    max-width: 900px;
}

.legal-eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--navy-blue);
    background: rgba(255, 212, 0, 0.35);
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.legal-title {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.8px;
    color: var(--navy-blue);
    margin-bottom: 12px;
}

.legal-updated {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

/* ==================== LAYOUT ==================== */
.legal-wrap {
    max-width: 900px;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* ==================== TABLE OF CONTENTS ==================== */
.legal-toc {
    background-color: var(--bg-light-gray);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--yellow);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 36px;
}

.legal-toc-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--navy-blue);
    margin-bottom: 14px;
}

.legal-toc-list {
    list-style: none;
    counter-reset: toc;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 28px;
}

.legal-toc-list li {
    counter-increment: toc;
    font-size: 14px;
    line-height: 1.5;
}

.legal-toc-list li::before {
    content: counter(toc) ".";
    font-weight: 800;
    color: var(--navy-blue);
    margin-right: 8px;
}

.legal-toc-list a {
    color: var(--text-gray);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-toc-list a:hover {
    color: var(--navy-blue);
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* ==================== CONTENT ==================== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    padding: 28px 0;
    border-bottom: 1px solid var(--border-light);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--navy-blue);
    letter-spacing: -0.3px;
    margin-bottom: 14px;
    scroll-margin-top: 30px;
}

.legal-section p {
    font-size: 15.5px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 14px;
}

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

.legal-section ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.legal-section li {
    font-size: 15.5px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 8px;
}

.legal-section strong {
    color: var(--navy-blue);
    font-weight: 700;
}

.legal-section a {
    color: var(--navy-blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: var(--text-black);
}

.legal-contact-list {
    list-style: none;
    padding-left: 0;
}

.legal-contact-list li {
    margin-bottom: 4px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 760px) {
    .legal-hero {
        padding: 46px 0 38px;
    }

    .legal-title {
        font-size: 34px;
    }

    .legal-toc {
        padding: 20px 20px;
    }

    .legal-toc-list {
        grid-template-columns: 1fr;
    }

    .legal-section h2 {
        font-size: 21px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 15px;
    }
}

@media (max-width: 420px) {
    .legal-wrap {
        padding-top: 28px;
        padding-bottom: 56px;
    }

    .legal-title {
        font-size: 29px;
    }
}