@font-face {
    font-family: "Encode Sans";
    src: url("encode-sans-latin-200-normal.woff") format("woff");
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

:root {
    --legal-header-height: 4.0625rem;
}

@font-face {
    font-family: "Encode Sans";
    src: url("encode-sans-latin-400-normal.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Encode Sans";
    src: url("encode-sans-latin-600-normal.woff") format("woff");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
}

.legal-page {
    height: 100%;
    margin: 0;
    overflow: hidden;
    color: #292929;
    background: #fff;
    font-family: "Encode Sans", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.55;
}

.legal-header {
    position: fixed;
    z-index: 10;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--legal-header-height);
    padding: 1rem;
    color: #fff;
    background: rgba(17, 16, 15, 0.78);
    -webkit-backdrop-filter: blur(0.85rem);
    backdrop-filter: blur(0.85rem);
}

.legal-languages,
.legal-socials {
    display: flex;
    align-items: center;
}

.legal-languages {
    gap: 0.5rem;
}

.legal-languages a,
.legal-socials a {
    color: inherit;
    text-decoration: none;
}

.legal-languages a {
    padding: 0.15rem 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.12em;
}

.legal-languages a[aria-current="page"] {
    border-bottom: 1px solid currentColor;
    color: #fff;
    font-weight: 600;
}

.legal-socials {
    gap: clamp(0.65rem, 1.5vw, 1rem);
}

.legal-socials a {
    display: grid;
    width: 2rem;
    height: 2rem;
    font-size: 1.35rem;
    line-height: 1;
    place-items: center;
}

.legal-languages a:hover,
.legal-languages a:focus-visible,
.legal-socials a:hover,
.legal-socials a:focus-visible {
    color: #fff;
}

.legal-content {
    position: fixed;
    top: var(--legal-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    max-width: none;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.legal-content-inner {
    max-width: 72rem;
    padding-top: 2.75rem;
    padding-bottom: 3rem;
}

.legal-content a {
    color: #111;
}

.legal-content h1 {
    margin: 0 0 1.25rem;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

.legal-content h2 {
    margin: 1.65rem 0 0.65rem;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
}

.legal-content p {
    max-width: 68rem;
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.legal-email {
    display: inline-flex;
    width: 9rem;
    height: 1.2em;
    margin: 0 0.08rem;
    padding: 0;
    border: 0;
    color: #111;
    background: transparent;
    vertical-align: -0.2em;
    cursor: pointer;
}

.legal-email canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.legal-email:focus-visible {
    outline: 0.125rem solid #111;
    outline-offset: 0.15rem;
}

.legal-copyright {
    margin-top: 2rem !important;
}

@media (max-width: 48rem) {
    :root {
        --legal-header-height: 4.8125rem;
    }

    .legal-header {
        padding: 0.75rem 1rem;
    }

    .legal-socials {
        gap: 0.65rem;
    }

    .legal-socials a {
        width: 1.55rem;
        height: 1.55rem;
        font-size: 1.25rem;
    }

    .legal-content-inner {
        padding: 2rem 1.35rem 2.5rem;
    }

    .legal-content h1 {
        font-size: 1.75rem;
    }

    .legal-content h2 {
        font-size: 1.2rem;
    }

    .legal-content p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .legal-content li {
        font-size: 0.98rem;
    }
}
