.legal-page {
    position: relative;
    min-height: 80svh;
    overflow: hidden;
    padding: 10rem 0 7rem;
    background: #000;
    color: #fff;
    font-family: "Inter Tight", Inter, sans-serif;
}

.legal-page__glow {
    display: none;
}

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

.legal-page__header {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto auto;
    column-gap: clamp(3rem, 8vw, 8rem);
    align-items: end;
}

.legal-page__eyebrow,
.legal-navigation__label {
    margin: 0;
    font-family: "IBM Plex Mono", monospace;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: #fff;
}

.legal-page__eyebrow {
    display: flex;
    grid-column: 1;
    align-items: center;
    gap: .6rem;
}

.legal-page__eyebrow::before {
    width: .5rem;
    height: .5rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #009bff;
    content: "";
}

.legal-page__title {
    grid-column: 1;
    margin: 1.15rem 0 0;
    font-family: Manrope, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.legal-page__header > p:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    max-width: 720px;
    margin: 0 0 .35rem;
    color: rgba(255, 255, 255, .68);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 300;
    line-height: 1.65;
}

.legal-page__grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    margin-top: 4.5rem;
    align-items: start;
}

.legal-navigation {
    position: sticky;
    top: 7.5rem;
}

.legal-navigation__label {
    padding: 0 0 1rem 1rem;
    color: rgba(255, 255, 255, .38);
}

.legal-navigation nav {
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.legal-navigation a {
    position: relative;
    display: flex;
    min-height: 3.1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .72rem .75rem .72rem 1rem;
    color: rgba(255, 255, 255, .5);
    font-size: .86rem;
    font-weight: 300;
    line-height: 1.35;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.legal-navigation a::before {
    position: absolute;
    top: 50%;
    left: -1px;
    width: 1px;
    height: 0;
    background: #45b8ff;
    content: "";
    transform: translateY(-50%);
    transition: height .2s ease;
}

.legal-navigation a svg {
    width: 1rem;
    flex: 0 0 auto;
    opacity: 0;
    transform: translateX(-.25rem);
    transition: opacity .2s ease, transform .2s ease;
}

.legal-navigation a:hover,
.legal-navigation a.is-active {
    color: #fff;
    background: transparent;
}

.legal-navigation a.is-active::before {
    height: 2rem;
}

.legal-navigation a:hover svg,
.legal-navigation a.is-active svg {
    opacity: 1;
    transform: translateX(0);
}

.legal-page__content {
    min-width: 0;
}

.legal-document__header {
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.legal-document__eyebrow,
.legal-cookie-settings__eyebrow {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1rem;
    color: #fff;
    font-family: "IBM Plex Mono", monospace;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.legal-document__eyebrow::before,
.legal-cookie-settings__eyebrow::before {
    width: .45rem;
    height: .45rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #009bff;
    content: "";
}

.legal-document__header h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-family: Manrope, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.legal-document__description {
    max-width: 720px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, .62);
    font-size: .95rem;
    font-weight: 300;
    line-height: 1.65;
}

.legal-document-frame,
.legal-cookie-settings {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.legal-document-frame::before,
.legal-cookie-settings::before {
    position: absolute;
    top: -1px;
    left: 0;
    width: 76px;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 155, 255, .9), rgba(0, 155, 255, 0));
    content: "";
}

.legal-document-frame {
    padding-top: clamp(2rem, 4vw, 3rem);
}

.legal-document-frame iframe {
    display: block;
    width: 100%;
    min-height: 1000px;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.legal-cookie-settings {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.75rem, 3vw, 2.5rem);
}

.legal-cookie-settings__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.legal-cookie-settings__eyebrow {
    margin-bottom: .55rem;
    font-size: .68rem;
}

.legal-cookie-settings h2 {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 500;
    letter-spacing: -.025em;
}

.legal-cookie-settings__status {
    min-height: 1.25rem;
    flex: 0 0 auto;
    color: #70d8a7;
    font-size: .78rem;
    line-height: 1.5;
}

.legal-cookie-settings__options {
    margin-top: 1.35rem;
}

.legal-cookie-option {
    display: flex;
    min-height: 4.65rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}

.legal-cookie-option--required {
    cursor: default;
}

.legal-cookie-option:last-child {
    border-bottom: 0;
}

.legal-cookie-option strong {
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-family: Manrope, sans-serif;
    font-size: .93rem;
    font-weight: 500;
}

.legal-cookie-option small {
    display: block;
    max-width: 720px;
    margin: .3rem 0 0;
    color: rgba(255, 255, 255, .55);
    font-size: .79rem;
    font-weight: 300;
    line-height: 1.45;
}

.legal-cookie-option__required {
    flex: 0 0 auto;
    color: #83cfff;
    font-family: "IBM Plex Mono", monospace;
    font-size: .65rem;
    letter-spacing: .04em;
    white-space: nowrap;
}

.legal-cookie-switch {
    position: relative;
    display: inline-flex;
    width: 3rem;
    height: 1.75rem;
    flex: 0 0 auto;
}

.legal-cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.legal-cookie-switch > span {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    transition: background-color .2s ease, border-color .2s ease;
}

.legal-cookie-switch > span::after {
    position: absolute;
    top: .25rem;
    left: .25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 .15rem .5rem rgba(0, 0, 0, .28);
    content: "";
    transition: transform .2s ease, background-color .2s ease;
}

.legal-cookie-switch input:checked + span {
    border-color: #248eff;
    background: #248eff;
}

.legal-cookie-switch input:checked + span::after {
    background: #fff;
    transform: translateX(1.25rem);
}

.legal-cookie-switch input:focus-visible + span {
    outline: 2px solid #62c5ff;
    outline-offset: 3px;
}

.legal-cookie-settings__actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.legal-cookie-button {
    min-height: 2.7rem;
    border: 1px solid #248eff;
    border-radius: 999px;
    padding: .65rem 1.25rem;
    background: #248eff;
    color: #fff;
    font-family: Manrope, sans-serif;
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.legal-cookie-button:hover {
    border-color: #45a5ff;
    background: #45a5ff;
    transform: translateY(-1px);
}

.legal-cookie-button--secondary {
    border-color: rgba(255, 255, 255, .16);
    background: transparent;
    color: rgba(255, 255, 255, .78);
}

.legal-cookie-button--secondary:hover {
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

@media (max-width: 960px) {
    .legal-page {
        padding-top: 8rem;
    }

    .legal-page__header {
        display: block;
    }

    .legal-page__header > p:last-child {
        max-width: 760px;
        margin: 1.5rem 0 0;
    }

    .legal-page__grid {
        grid-template-columns: 1fr;
        margin-top: 4.5rem;
    }

    .legal-navigation {
        position: static;
    }

    .legal-navigation__label {
        padding-left: 0;
    }

    .legal-navigation nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 2rem;
        border-top: 1px solid rgba(255, 255, 255, .12);
        border-left: 0;
    }

    .legal-navigation a {
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        padding-right: 0;
        padding-left: 0;
    }

    .legal-navigation a::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .legal-page {
        padding-bottom: 4rem;
    }

    .legal-page__header > p:last-child {
        font-size: .95rem;
    }

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

    .legal-document-frame iframe {
        min-height: 800px;
        height: 800px;
    }

    .legal-cookie-settings__header,
    .legal-cookie-option {
        gap: 1rem;
    }

    .legal-cookie-settings__header {
        display: block;
    }

    .legal-cookie-settings__status {
        display: block;
        margin-top: .55rem;
    }

    .legal-cookie-settings__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .legal-cookie-button {
        width: 100%;
    }
}

@media print {
    .legal-page {
        padding: 0;
        background: #fff;
    }

    .legal-page__header,
    .legal-navigation,
    .legal-cookie-settings,
    body > header,
    body > footer {
        display: none !important;
    }

    .legal-page__grid {
        display: block;
        margin: 0;
    }

    .legal-document__header h1 {
        color: #0f2a43;
    }

    .legal-document__eyebrow {
        color: #252d34;
    }

    .legal-document-frame {
        border: 0;
        padding: 0;
    }

    .legal-document-frame::before {
        display: none;
    }
}
