:root {
  --black: #090909;
  --white: #ffffff;
  --ink: #333037;
  --acid: #c6ff00;
  --lime: #dfff74;
  --page: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "Onest", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p {
  margin: 0;
}

::selection {
  background: var(--acid);
  color: #111111;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--white);
  color: #111111;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: min(calc(100% - 200px), var(--page));
  margin-inline: auto;
}

.legal-hero {
  position: relative;
  min-height: 520px;
  background: var(--black);
}

.topbar {
  position: absolute;
  z-index: 12;
  top: 28px;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: auto;
  height: 44px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 500;
}

.topnav a {
  white-space: nowrap;
  transition: color 0.2s ease;
}

.topnav a:hover {
  color: rgba(255, 255, 255, 0.62);
}

.legal-hero__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  align-content: end;
  min-height: 520px;
  padding-top: 150px;
  padding-bottom: 72px;
}

.legal-hero__title {
  grid-column: 1 / span 10;
  max-width: 1100px;
  margin: 0;
  color: var(--white);
  font-size: clamp(52px, 5.6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.058em;
  line-height: 0.98;
  text-wrap: balance;
}

.legal-hero__title--cookies {
  grid-column: 1 / span 9;
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 1;
}

.legal-hero__meta {
  grid-column: 1 / span 8;
  margin-top: 30px;
}

.legal-hero__date {
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.legal-main {
  background: var(--black);
}

.legal-document {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  padding: 70px 0 128px;
  color: var(--white);
}

.legal-tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 32px;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-document > :not(.legal-tabs) {
  grid-column: 1 / span 8;
}

.legal-tabs a {
  position: relative;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.legal-tabs a:hover {
  color: rgba(255, 255, 255, 0.78);
}

.legal-tabs a[aria-current="page"] {
  color: var(--white);
}

.legal-tabs a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -25px;
  left: 0;
  height: 2px;
  background: var(--acid);
  content: "";
}

.legal-document > p {
  max-width: 800px;
  margin: 16px 0 0 !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 16px !important;
  letter-spacing: -0.01em;
  line-height: 1.72 !important;
  text-wrap: pretty;
}

.legal-document > .legal-tabs + p {
  margin-top: 0 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 18px !important;
  line-height: 1.66 !important;
}

.legal-document > h2 {
  max-width: 820px;
  margin: 58px 0 0 !important;
  color: var(--white) !important;
  font-size: clamp(26px, 2.4vw, 32px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.14 !important;
  text-wrap: balance;
}

.legal-document a:not(.legal-tabs a) {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.legal-document a:not(.legal-tabs a):hover {
  color: var(--acid);
  text-decoration-color: var(--acid);
}

.legal-document > div:not(.legal-tabs) {
  display: flex !important;
  max-width: 800px;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 18px !important;
}

.legal-document > div:not(.legal-tabs) > div {
  display: grid !important;
  grid-template-columns: 6px minmax(0, 1fr);
  align-items: start !important;
  gap: 14px !important;
}

.legal-document > div:not(.legal-tabs) > div > span {
  width: 4px !important;
  height: 4px !important;
  margin-top: 11px !important;
  border-radius: 50% !important;
  background: var(--acid) !important;
}

.legal-document > div:not(.legal-tabs) > div > p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 16px !important;
  letter-spacing: -0.01em;
  line-height: 1.65 !important;
}

.site-footer {
  padding: 0 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--black);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.55fr) repeat(4, minmax(130px, 1fr));
  gap: 52px;
  padding: 72px 0 64px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.footer-brand__logo {
  width: auto;
  height: 44px;
}

.footer-brand__tagline {
  max-width: 220px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1.55;
}

.footer-column__heading {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-column__links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 13px;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.3;
}

.footer-column__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column__links a:hover {
  color: var(--acid);
  transform: translateX(3px);
}

.footer-column__links span {
  color: rgba(255, 255, 255, 0.48);
}

.footer-link__arrow {
  font-size: 13px;
  line-height: 1;
}

.footer-divider {
  position: relative;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(-50%);
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(420px, 1.2fr);
  align-items: start;
  gap: 64px;
  padding-top: 30px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 12px;
  letter-spacing: -0.006em;
  line-height: 1.6;
}

.footer-bottom__legal {
  max-width: 620px;
  justify-self: end;
  text-align: right;
}

.footer-bottom__legal a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.34);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-bottom__legal a:hover {
  color: var(--acid);
}

@media (max-width: 1000px) {
  .shell {
    width: calc(100% - 48px);
  }

  .topnav {
    gap: 20px;
    font-size: 14px;
  }

  .legal-hero__title {
    grid-column: 1 / span 11;
  }

  .legal-hero__title--cookies {
    grid-column: 1 / span 10;
  }

  .legal-document > :not(.legal-tabs) {
    grid-column: 1 / span 10;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .shell {
    width: calc(100% - 36px);
  }

  .legal-hero,
  .legal-hero__inner {
    min-height: 470px;
  }

  .topbar {
    top: 16px;
  }

  .topnav {
    display: none;
  }

  .legal-hero__inner {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding-top: 120px;
    padding-bottom: 54px;
  }

  .legal-hero__title {
    grid-column: 1;
    font-size: clamp(34px, 10.2vw, 48px);
    line-height: 0.99;
  }

  .legal-hero__title--cookies {
    grid-column: 1;
    font-size: clamp(32px, 9.2vw, 40px);
  }

  .legal-hero__meta {
    grid-column: 1;
    margin-top: 28px;
  }

  .legal-document {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding: 48px 0 84px;
  }

  .legal-document > :not(.legal-tabs) {
    grid-column: 1;
  }

  .legal-tabs {
    gap: 24px;
    margin-bottom: 48px;
  }

  .legal-tabs a {
    line-height: 1.35;
  }

  .legal-document > p,
  .legal-document > div:not(.legal-tabs) > div > p {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  .legal-document > .legal-tabs + p {
    font-size: 16px !important;
    line-height: 1.66 !important;
  }

  .legal-document > h2 {
    margin-top: 48px !important;
    font-size: 26px !important;
  }

  .footer-main {
    gap: 40px 24px;
    padding: 64px 0 54px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-bottom__legal {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 430px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
