:root {
    --legal-navy: #071a36;
    --legal-blue: #0b5bd3;
    --legal-cyan: #10bde7;
    --legal-ink: #14243c;
    --legal-muted: #5c6d82;
    --legal-line: #dce6f0;
    --legal-soft: #f3f8fc;
}

.legal-wrap {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.legal-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(76px, 8vw, 118px) 0 clamp(62px, 7vw, 94px);
    color: #fff;
    background:
        radial-gradient(circle at 82% 20%, rgba(16, 189, 231, .22), transparent 28%),
        linear-gradient(125deg, #06162e 0%, #082c61 62%, #07558b 100%);
}

.legal-hero::after {
    position: absolute;
    right: -110px;
    bottom: -150px;
    width: 430px;
    height: 430px;
    content: "";
    border: 1px solid rgba(124, 222, 246, .22);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(124, 222, 246, .035), 0 0 0 110px rgba(124, 222, 246, .025);
}

.legal-hero .legal-wrap {
    position: relative;
    z-index: 1;
}

.legal-breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .68);
    font-size: .83rem;
}

.legal-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.legal-eyebrow {
    margin: 0 0 14px;
    color: var(--legal-cyan);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.legal-hero h1 {
    max-width: 820px;
    margin: 0;
    color: #fff !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #fff !important;
    font-size: clamp(2.6rem, 6vw, 5.25rem);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: .98;
    opacity: 1;
}

.legal-hero h1 span {
    color: var(--legal-cyan) !important;
    -webkit-text-fill-color: var(--legal-cyan) !important;
}

.legal-intro {
    max-width: 730px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1.05rem, 2vw, 1.26rem);
    line-height: 1.7;
}

.legal-updated {
    margin: 25px 0 0;
    color: rgba(255, 255, 255, .58);
    font-size: .84rem;
}

.legal-main {
    padding: clamp(58px, 7vw, 100px) 0 clamp(80px, 9vw, 130px);
    color: var(--legal-ink);
    background: #fff;
}

.legal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 800px);
    gap: clamp(45px, 7vw, 100px);
    justify-content: center;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 6px;
    padding-left: 18px;
    border-left: 2px solid var(--legal-line);
}

.legal-toc strong {
    margin-bottom: 9px;
    color: var(--legal-navy);
    font-size: .79rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-toc a {
    padding: 5px 0;
    color: var(--legal-muted);
    font-size: .87rem;
    line-height: 1.35;
    text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    color: var(--legal-blue);
}

.legal-content section {
    scroll-margin-top: 110px;
    padding-bottom: 36px;
    margin-bottom: 38px;
    border-bottom: 1px solid var(--legal-line);
}

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

.legal-content h2 {
    margin: 0 0 18px;
    color: var(--legal-navy);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.legal-content p,
.legal-content li {
    color: var(--legal-muted);
    font-size: 1rem;
    line-height: 1.82;
}

.legal-content p {
    margin: 0 0 15px;
}

.legal-content ul {
    display: grid;
    gap: 8px;
    padding-left: 21px;
    margin: 14px 0 18px;
}

.legal-content a {
    color: var(--legal-blue);
    font-weight: 650;
}

.legal-note {
    padding: 20px 22px;
    margin-top: 22px;
    color: #38516f;
    line-height: 1.7;
    background: var(--legal-soft);
    border-left: 4px solid var(--legal-cyan);
    border-radius: 0 8px 8px 0;
}

.legal-note strong {
    color: var(--legal-navy);
}

.cookie-table-wrap {
    overflow-x: auto;
    margin: 22px 0 26px;
    border: 1px solid var(--legal-line);
    border-radius: 10px;
}

.cookie-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    text-align: left;
}

.cookie-table th,
.cookie-table td {
    padding: 17px 18px;
    vertical-align: top;
    border-bottom: 1px solid var(--legal-line);
}

.cookie-table th {
    color: #fff;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--legal-navy);
}

.cookie-table td {
    color: var(--legal-muted);
    font-size: .92rem;
    line-height: 1.6;
}

.cookie-table tbody tr:last-child td {
    border-bottom: 0;
}

.cookie-table td:first-child {
    color: var(--legal-navy);
}

.legal-content .legal-contact {
    padding: clamp(28px, 5vw, 42px);
    color: #fff;
    background: linear-gradient(125deg, var(--legal-navy), #0b4c8b);
    border: 0;
    border-radius: 12px;
}

.legal-contact h2 {
    color: #fff;
}

.legal-contact p {
    color: rgba(255, 255, 255, .77);
}

.legal-contact a {
    color: #6ee3ff;
}

@media (max-width: 820px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .legal-toc {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 18px 20px;
        background: var(--legal-soft);
        border: 0;
        border-radius: 8px;
    }

    .legal-toc strong {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .legal-wrap {
        width: min(100% - 28px, 1180px);
    }

    .legal-hero {
        padding-top: 58px;
    }

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

    .legal-content section {
        padding-bottom: 28px;
        margin-bottom: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
}
