*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #201b55;
    --indigo: #323191;
    --violet: #4751a3;
    --sky: #63A1F2;
    --green: #66bc46;
    --green-d: #4a9930;
    --white: #ffffff;
    --off: #f6f7fc;
    --muted: #8890b5;
    --text: #1a1840;
    --border: #e2e5f3;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    height: 68px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}

nav.scrolled {
    box-shadow: 0 2px 24px rgba(50, 49, 145, .08);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    height: 36px;
}

.nav-logo span {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--indigo);
    letter-spacing: -.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    opacity: .75;
    transition: opacity .2s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    background: var(--indigo);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: .55rem 1.4rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s;
}

.nav-cta:hover {
    background: var(--navy);
    transform: translateY(-1px);
}

/* ── PAGE HEADER ── */
.page-header {
    background: linear-gradient(160deg, #f6f7fc 0%, #eceffe 40%, #f0f8ec 100%);
    padding: 140px 5vw 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 161, 242, .12) 0%, transparent 70%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 188, 70, .09) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.page-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-d);
    margin-bottom: 1rem;
}

.page-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--navy);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.page-header .meta {
    font-size: .875rem;
    color: var(--muted);
    font-weight: 400;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

.page-header .meta span {
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* ── LAYOUT ── */
.legal-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    max-width: 1060px;
    margin: 0 auto;
    padding: 60px 5vw 100px;
    align-items: start;
}

/* ── STICKY TOC ── */
.toc {
    position: sticky;
    top: 90px;
    background: var(--off);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
}

.toc-title {
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.toc a {
    font-size: .82rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 400;
    display: block;
    padding: .35rem .6rem;
    border-radius: 8px;
    transition: background .2s, color .2s;
    line-height: 1.4;
}

.toc a:hover {
    background: var(--border);
    color: var(--navy);
}

.toc a.active {
    background: rgba(50, 49, 145, .07);
    color: var(--indigo);
    font-weight: 600;
}

/* ── CONTENT ── */
.legal-content {
    min-width: 0;
}

.legal-section {
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.02em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(50, 49, 145, .08);
    color: var(--indigo);
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.legal-section p {
    font-size: .95rem;
    line-height: 1.8;
    color: #3d3b6e;
    font-weight: 400;
    margin-bottom: 1rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
    padding-left: 1.4rem;
    margin: .5rem 0 1rem;
}

.legal-section li {
    font-size: .93rem;
    line-height: 1.75;
    color: #3d3b6e;
    margin-bottom: .4rem;
}

.legal-section strong {
    color: var(--navy);
    font-weight: 600;
}

.legal-section a {
    color: var(--indigo);
}

.legal-section a:hover {
    text-decoration: underline;
}

.highlight-box {
    background: rgba(50, 49, 145, .05);
    border: 1px solid rgba(50, 49, 145, .12);
    border-left: 3px solid var(--indigo);
    border-radius: 0 12px 12px 0;
    padding: 1.1rem 1.3rem;
    margin: 1.25rem 0;
}

.highlight-box p {
    margin: 0;
    font-size: .9rem;
}

.warning-box {
    background: rgba(102, 188, 70, .06);
    border: 1px solid rgba(102, 188, 70, .25);
    border-left: 3px solid var(--green);
    border-radius: 0 12px 12px 0;
    padding: 1.1rem 1.3rem;
    margin: 1.25rem 0;
}

.warning-box p {
    margin: 0;
    font-size: .9rem;
}

/* ── DATA TABLE (privacy page) ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: .88rem;
}

.data-table th {
    background: rgba(50, 49, 145, .06);
    color: var(--navy);
    font-weight: 600;
    padding: .7rem 1rem;
    text-align: left;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.data-table td {
    padding: .7rem 1rem;
    color: #3d3b6e;
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:nth-child(even) td {
    background: var(--off);
}

/* ── FOOTER ── */
footer {
    background: var(--text);
    color: rgba(255, 255, 255, .5);
    padding: 3rem 5vw;
    text-align: center;
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: -.02em;
    margin-bottom: .5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

.footer-logo img {
    height: 72px;
    width: auto;
    display: block;
}

footer p {
    font-size: .85rem;
    margin-top: .5rem;
}

footer a {
    color: var(--sky);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .legal-wrap {
        grid-template-columns: 1fr;
    }

    .toc {
        display: none;
    }

    .data-table {
        font-size: .8rem;
    }

    .data-table th,
    .data-table td {
        padding: .5rem .7rem;
    }
}