:root {
    --black: #050505;
    --black-soft: #111317;
    --blue: #0066cc;
    --blue-dark: #004a99;
    --blue-light: #dcecff;
    --red: #a32c00;
    --red-dark: #7a2100;
    --orange: #e64a19;
    --surface: #f4f4f4;
    --surface-raised: #fff;
    --ink: #1b1e23;
    --muted: #5d6470;
    --line: #d9dde3;
    --shadow: 0 22px 50px rgba(9, 16, 29, 0.12);
}

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

html.terms-of-service-page {
    scroll-padding-top: 95px;
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

body,
.terms-service-page {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    min-width: 0;
    background-color: var(--surface);
    background-image: linear-gradient(rgba(27, 30, 35, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 30, 35, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
}

main :where(h1, h2, h3, p, li) {
    min-inline-size: 0;
    overflow-wrap: anywhere;
}

a {
    color: inherit;
}

.restricted-width-wrapper {
    width: min(100% - 40px, 1229px);
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 8px;
    z-index: 10000;
    padding: 10px 14px;
    border: 2px solid #fff;
    border-radius: 4px;
    color: #fff;
    background: #000;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.skip-link:focus {
    top: 6px;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

#main-content {
    scroll-margin-top: 0;
}

.page-logo {
    position: fixed;
    top: 20px;
    left: 8px;
    z-index: 9000;
    width: 50px;
    height: 50px;
}

header {
    color: #1b1e23;
    line-height: 1.6;
}

header nav {
    position: fixed;
    top: 20px;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background: rgba(0, 0, 0);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

header nav ul {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 36px);
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

header nav ul li a::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 2px;
    background: var(--orange);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

header nav ul li a:hover,
header nav ul li a[aria-current="page"] {
    color: var(--orange);
}

header nav ul li a:hover::after,
header nav ul li a[aria-current="page"]::after {
    transform: scaleX(1);
}

header nav ul li a[aria-disabled="true"] {
    color: #969696;
    cursor: default;
}

header nav ul li a[aria-disabled="true"]::after {
    display: none;
}

header nav ul li a:focus-visible,
.footer-grid a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

header nav .hamburger {
    display: none;
    width: auto;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

header nav .hamburger:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.second-navigation {
    top: 0;
    height: 20px;
    background: var(--blue);
    border: 0;
}

.second-navigation ul {
    gap: 30px;
    height: 100%;
}

.second-navigation ul li {
    display: flex;
    align-items: center;
    height: 100%;
}

.second-navigation ul li a {
    height: 100%;
    min-height: 0;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
}

.second-navigation ul li a::after {
    bottom: 1px;
}

.policy-hero {
    position: relative;
    isolation: isolate;
    min-height: 500px;
    margin-top: 70px;
    overflow: hidden;
    color: #fff;
    background: var(--black);
}

.policy-hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(120deg, rgba(0, 102, 204, 0.2), transparent 50%), linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
    content: "";
}

.policy-hero::after {
    position: absolute;
    top: 0;
    right: -8%;
    z-index: -1;
    width: 48%;
    height: 100%;
    background: linear-gradient(140deg, rgba(163, 44, 0, 0.92), rgba(0, 102, 204, 0.45));
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
    content: "";
}

.policy-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.65fr);
    align-items: center;
    gap: clamp(48px, 8vw, 110px);
    min-height: 500px;
    padding-block: 70px;
}

.policy-hero-copy {
    max-inline-size: 760px;
}

.policy-kicker,
.policy-navigation-label {
    margin: 0 0 14px;
    color: var(--orange);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    line-height: 1.25;
    text-transform: uppercase;
}

.policy-hero h1 {
    max-inline-size: 780px;
    margin: 0;
    color: #fff;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: clamp(4rem, 9vw, 7.8rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.84;
    text-transform: uppercase;
    text-wrap: balance;
}

.policy-hero-copy > p:last-child {
    max-inline-size: 660px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.55vw, 1.18rem);
    line-height: 1.72;
}

.policy-facts {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(5, 5, 5, 0.68);
    box-shadow: 20px 20px 0 rgba(0, 102, 204, 0.22);
    backdrop-filter: blur(8px);
}

.policy-facts div {
    padding: 23px 24px;
    border-block-start: 1px solid rgba(255, 255, 255, 0.18);
}

.policy-facts div:first-child {
    border-block-start: 0;
}

.policy-facts dt {
    margin-block-end: 6px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.policy-facts dd {
    margin: 0;
    color: #fff;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 1.23rem;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.policy-facts a {
    color: #fff;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.policy-facts a:hover {
    color: var(--orange);
}

.policy-facts a:focus-visible,
.policy-navigation a:focus-visible,
.policy-document a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.policy-layout {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(32px, 5vw, 68px);
    padding-block: clamp(64px, 8vw, 104px);
}

.policy-navigation {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 135px);
    padding: 28px 26px;
    overflow: auto;
    border-block-start: 5px solid var(--red);
    background: var(--black-soft);
    box-shadow: 14px 14px 0 rgba(0, 102, 204, 0.12);
}

.policy-navigation-label {
    margin-block-end: 8px;
}

.policy-navigation h2 {
    margin: 0 0 22px;
    color: #fff;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.policy-navigation ol {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: policy-section;
}

.policy-navigation li {
    counter-increment: policy-section;
    border-block-start: 1px solid rgba(255, 255, 255, 0.12);
}

.policy-navigation a {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    min-height: 48px;
    padding-block: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.policy-navigation a::before {
    color: #70b8ff;
    content: counter(policy-section, decimal-leading-zero);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.policy-navigation a:hover {
    color: #fff;
    transform: translateX(4px);
}

.policy-document {
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--surface-raised);
    box-shadow: var(--shadow);
}

.policy-introduction {
    position: relative;
    padding: clamp(34px, 5vw, 54px);
    border-block-start: 6px solid var(--blue);
    background: linear-gradient(135deg, #eef5fc, #fff 70%);
}

.policy-introduction::before {
    position: absolute;
    top: 32px;
    bottom: 32px;
    left: 0;
    width: 5px;
    background: var(--red);
    content: "";
}

.policy-effective-date {
    margin: 0 0 18px;
    color: var(--red);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.policy-introduction > p:last-child {
    margin: 0;
    color: var(--ink);
    font-size: 1.04rem;
    line-height: 1.78;
}

.policy-document > section {
    padding: clamp(34px, 5vw, 54px);
    border-block-start: 1px solid var(--line);
    scroll-margin-top: 105px;
}

.policy-document h2 {
    max-inline-size: 830px;
    margin: 0 0 22px;
    color: var(--ink);
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: clamp(1.7rem, 3.2vw, 2.65rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-transform: uppercase;
    text-wrap: balance;
}

.policy-document p {
    margin: 0;
    color: #454b55;
    font-size: 1rem;
    line-height: 1.8;
}

.policy-document p + p {
    margin-block-start: 18px;
}

.policy-document ul {
    display: grid;
    gap: 14px;
    padding-inline-start: 1.4rem;
    margin: 24px 0 0;
}

.policy-document li {
    padding-inline-start: 5px;
    color: #454b55;
    line-height: 1.72;
}

.policy-document li::marker {
    color: var(--red);
}

.policy-document strong {
    color: var(--ink);
}

.policy-document a {
    color: var(--blue-dark);
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.policy-document a:hover {
    color: var(--red);
}

.policy-document > .policy-contact {
    border-block-start: 6px solid var(--red);
    background: var(--blue-light);
}

.policy-contact p + p {
    color: var(--ink);
    font-weight: 800;
}

.site-footer {
    padding: 42px 20px;
    margin-top: 0;
    color: #fff;
    background: #000;
    text-align: center;
}

.site-footer p {
    margin: 0 0 20px;
    color: #fff;
    font-size: 16px;
}

.site-footer nav {
    display: flex;
    justify-content: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 10px 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-grid li {
    margin: 0;
}

.footer-grid a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 6px;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.footer-grid a:hover {
    color: var(--orange);
}

.scrollToTopBtn {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 10px 15px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    font: inherit;
    line-height: normal;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s linear 0.2s;
}

.scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.scrollToTopBtn:hover {
    background: var(--blue-dark);
}

.scrollToTopBtn:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

.arrow {
    display: block;
    margin-bottom: 3px;
    font-size: 16px;
}

.top-text {
    font-size: 14px;
}

@media (min-width: 886px) {
    .navigation-list li:nth-child(6),
    .navigation-list li:nth-child(7),
    .navigation-list li:nth-child(8) {
        display: none;
    }
}

@media (max-width: 1040px) {
    .policy-hero-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
        gap: 40px;
    }

    .policy-layout {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
        gap: 34px;
    }
}

@media (max-width: 886px) {
    .page-logo {
        right: 8px;
        left: auto;
    }

    header nav ul {
        position: absolute;
        top: 50px;
        left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.98);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
    }

    header nav ul.open {
        max-height: 560px;
        padding-block: 12px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    header nav .hamburger {
        display: block;
    }

    header nav ul li {
        width: 100%;
        padding-inline: 20px;
    }

    header nav ul li a {
        width: 100%;
    }

    header nav ul li a::after {
        right: auto;
        width: 44px;
    }

    .navigation-list li:nth-child(6),
    .navigation-list li:nth-child(7),
    .navigation-list li:nth-child(8) {
        display: block;
    }

    .second-navigation ul {
        display: none;
    }

    .policy-hero-layout {
        grid-template-columns: 1fr;
        align-content: center;
        min-height: 590px;
    }

    .policy-hero::after {
        right: -26%;
        width: 70%;
        opacity: 0.58;
    }

    .policy-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        box-shadow: 14px 14px 0 rgba(0, 102, 204, 0.22);
    }

    .policy-facts div {
        border-block-start: 0;
        border-inline-start: 1px solid rgba(255, 255, 255, 0.18);
    }

    .policy-facts div:first-child {
        border-inline-start: 0;
    }

    .policy-layout {
        grid-template-columns: 1fr;
    }

    .policy-navigation {
        position: static;
        max-height: none;
    }

    .policy-navigation ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
    }
}

@media (max-width: 768px) {
    .restricted-width-wrapper {
        width: min(100% - 28px, 1229px);
    }

    .policy-hero,
    .policy-hero-layout {
        min-height: 610px;
    }

    .policy-hero-layout {
        gap: 38px;
        padding-block: 56px;
    }

    .policy-hero h1 {
        font-size: clamp(3.4rem, 17vw, 5.7rem);
    }

    .policy-facts dd {
        font-size: 1rem;
    }

    .policy-layout {
        padding-block: 62px;
    }

    .policy-navigation {
        padding: 25px 22px;
    }

    .policy-introduction,
    .policy-document > section {
        padding: 32px 24px;
    }

    .policy-introduction::before {
        top: 24px;
        bottom: 24px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, auto);
        row-gap: 0;
    }

    .scrollToTopBtn .arrow {
        display: none;
    }
}

@media (max-width: 560px) {
    .policy-hero,
    .policy-hero-layout {
        min-height: 660px;
    }

    .policy-facts {
        grid-template-columns: 1fr;
    }

    .policy-facts div {
        border-block-start: 1px solid rgba(255, 255, 255, 0.18);
        border-inline-start: 0;
    }

    .policy-facts div:first-child {
        border-block-start: 0;
    }

    .policy-navigation ol {
        grid-template-columns: 1fr;
    }

    .policy-document h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 359px) {
    .restricted-width-wrapper {
        width: min(100% - 20px, 1229px);
    }

    .footer-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 10px;
    }

    .footer-grid a {
        padding-inline: 4px;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .policy-navigation a:hover,
    .scrollToTopBtn,
    .scrollToTopBtn.show {
        transform: none;
    }
}
