@font-face {
    font-family: "Urbanist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/urbanist-latin.woff2') format('woff2');
}

:root {
    --legal-ink: #071735;
    --legal-blue: #0c2854;
    --legal-orange: #fd8d32;
    --legal-paper: #f7f7f5;
    --legal-gutter: clamp(24px, 5vw, 84px);
    --legal-header-gutter: clamp(24px, 3.15vw, 68px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    color: var(--legal-ink);
    background: var(--legal-paper);
    font-family: "Urbanist", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body * {
    box-sizing: border-box;
}

.legal-skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: #ffffff;
    background: var(--legal-ink);
    text-decoration: none;
    transform: translateY(-160%);
}

.legal-skip-link:focus {
    transform: translateY(0);
}

.legal-site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(7, 23, 53, 0.13);
    background: rgba(255, 255, 255, 0.96);
}

.legal-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 2160px);
    min-height: clamp(92px, 10.4vh, 120px);
    margin: 0 auto;
    padding: 0 var(--legal-header-gutter);
}

.legal-site-header__brand {
    display: block;
    width: clamp(113px, 6.84vw, 142px);
}

.legal-site-header__brand img {
    display: block;
    width: 100%;
    height: auto;
}

.legal-site-header__home {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--legal-ink);
    font-size: 13px;
    font-weight: 620;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.legal-site-header__plane {
    display: block;
    width: 20px;
    height: 18px;
    background: url('../images/dyer-logo-blue.svg') -12px -68px / 162px 90px no-repeat;
    transition: transform 240ms ease;
}

.legal-site-header__home:hover .legal-site-header__plane,
.legal-site-header__home:focus-visible .legal-site-header__plane {
    transform: translateX(5px);
}

.legal-site-header__brand:focus-visible,
.legal-site-header__home:focus-visible,
.legal-page a:focus-visible {
    outline: 2px solid var(--legal-orange);
    outline-offset: 5px;
}

.legal-page__hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 8%, rgba(56, 99, 159, 0.25), transparent 34%),
        var(--legal-ink);
}

.legal-page__hero-inner {
    width: min(100%, 2160px);
    margin: 0 auto;
    padding: clamp(34px, 3vw, 52px) var(--legal-gutter) clamp(30px, 2.6vw, 42px);
}

.legal-page__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.legal-page__meta span:first-child {
    color: var(--legal-orange);
}

.legal-page__hero h1 {
    max-width: 1000px;
    margin: clamp(16px, 1.4vw, 24px) 0 0;
    font-size: clamp(40px, 4.2vw, 68px);
    font-weight: 350;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.legal-page__intro {
    max-width: 900px;
    margin: clamp(18px, 1.7vw, 26px) 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(15px, 0.95vw, 17px);
    font-weight: 390;
    line-height: 1.4;
    letter-spacing: -0.012em;
}

.legal-page__switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: clamp(22px, 2vw, 30px);
}

.legal-page__switcher a {
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.legal-page__switcher a:hover,
.legal-page__switcher a:focus-visible,
.legal-page__switcher a[aria-current="page"] {
    color: #ffffff;
    border-color: rgba(253, 141, 50, 0.72);
    background: rgba(253, 141, 50, 0.1);
}

.legal-page__layout {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(0, 820px);
    justify-content: center;
    gap: clamp(60px, 7vw, 130px);
    width: min(100%, 1500px);
    margin: 0 auto;
    padding: clamp(52px, 5vw, 82px) var(--legal-gutter) clamp(96px, 9vw, 154px);
}

.legal-page__toc {
    align-self: start;
    position: sticky;
    top: 34px;
}

.legal-page__toc > p {
    margin: 0 0 24px;
    color: rgba(7, 23, 53, 0.6);
    font-size: 11px;
    font-weight: 680;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.legal-page__toc ol {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(7, 23, 53, 0.14);
}

.legal-page__toc li {
    border-bottom: 1px solid rgba(7, 23, 53, 0.14);
}

.legal-page__toc a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
    color: rgba(7, 23, 53, 0.7);
    font-size: 13px;
    font-weight: 540;
    line-height: 1.35;
    text-decoration: none;
    transition: color 180ms ease, transform 220ms ease;
}

.legal-page__toc a span {
    color: rgba(7, 23, 53, 0.38);
    font-size: 10px;
    font-weight: 680;
    letter-spacing: 0.12em;
}

.legal-page__toc a:hover,
.legal-page__toc a:focus-visible {
    color: var(--legal-orange);
    transform: translateX(4px);
}

.legal-page__content {
    min-width: 0;
    color: rgba(7, 23, 53, 0.82);
    font-size: clamp(17px, 1.12vw, 19px);
    font-weight: 430;
    line-height: 1.72;
}

.legal-page__content h2 {
    scroll-margin-top: 40px;
    margin: clamp(62px, 6vw, 90px) 0 22px;
    padding-top: clamp(42px, 4vw, 60px);
    color: var(--legal-ink);
    border-top: 1px solid rgba(7, 23, 53, 0.15);
    font-size: clamp(28px, 2.15vw, 36px);
    font-weight: 470;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.legal-page__content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.legal-page__content h3 {
    margin: 36px 0 14px;
    color: var(--legal-blue);
    font-size: clamp(19px, 1.35vw, 23px);
    font-weight: 600;
    line-height: 1.25;
}

.legal-page__content p {
    margin: 0 0 20px;
}

.legal-page__content strong {
    color: var(--legal-ink);
    font-weight: 650;
}

.legal-page__content ul {
    display: grid;
    gap: 12px;
    margin: 24px 0 30px;
    padding: 0;
    list-style: none;
}

.legal-page__content li {
    position: relative;
    padding-left: 30px;
}

.legal-page__content li::before {
    position: absolute;
    top: 0.82em;
    left: 0;
    width: 14px;
    height: 1px;
    content: "";
    background: rgba(7, 23, 53, 0.46);
}

.legal-page__content a {
    color: var(--legal-blue);
    text-decoration-color: rgba(253, 141, 50, 0.76);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.legal-page__content a:hover {
    color: var(--legal-orange);
}

@media (max-width: 820px) {
    .legal-site-header__inner {
        min-height: 92px;
    }

    .legal-page__hero-inner {
        padding-top: 32px;
        padding-bottom: 28px;
    }

    .legal-page__hero h1 {
        font-size: clamp(38px, 9.5vw, 54px);
    }

    .legal-page__layout {
        grid-template-columns: 1fr;
        gap: 54px;
        padding-top: 46px;
        padding-bottom: 92px;
    }

    .legal-page__toc {
        position: static;
        padding: 24px;
        border: 1px solid rgba(7, 23, 53, 0.14);
        background: rgba(255, 255, 255, 0.42);
    }

    .legal-page__toc ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }
}

@media (max-width: 520px) {
    :root {
        --legal-gutter: 22px;
    }

    html {
        scroll-padding-top: 24px;
    }

    .legal-site-header__inner {
        min-height: 88px;
    }

    .legal-site-header__brand {
        width: 106px;
    }

    .legal-site-header__home {
        gap: 7px;
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .legal-site-header__plane {
        width: 16px;
        transform: scale(0.88);
        transform-origin: left center;
    }

    .legal-page__hero-inner {
        padding-top: 26px;
        padding-bottom: 24px;
    }

    .legal-page__meta {
        flex-direction: column;
        gap: 8px;
        font-size: 10px;
    }

    .legal-page__hero h1 {
        margin-top: 16px;
        font-size: clamp(34px, 10.8vw, 44px);
        line-height: 1.02;
    }

    .legal-page__intro {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.42;
    }

    .legal-page__switcher {
        gap: 7px;
        margin-top: 20px;
    }

    .legal-page__switcher a {
        padding: 8px 11px;
        font-size: 10px;
        letter-spacing: 0.05em;
    }

    .legal-page__layout {
        gap: 44px;
        padding-top: 36px;
        padding-bottom: 72px;
    }

    .legal-page__toc {
        padding: 20px;
    }

    .legal-page__toc > p {
        margin-bottom: 16px;
    }

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

    .legal-page__toc a {
        padding: 11px 0;
        font-size: 12px;
    }

    .legal-page__content {
        font-size: 16px;
        line-height: 1.68;
    }

    .legal-page__content h2 {
        margin-top: 52px;
        padding-top: 36px;
        font-size: 27px;
    }

    .legal-page__content h3 {
        margin-top: 30px;
        font-size: 19px;
    }

    .legal-page__content ul {
        gap: 10px;
        margin: 20px 0 26px;
    }
}

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

    .legal-site-header__plane,
    .legal-page__toc a {
        transition: none;
    }
}
