@font-face {
  font-family: "Inter";
  src: url("/assets/inter-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/cormorant-garamond-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #080706;
  --ink-soft: #100b0c;
  --wine: #25060d;
  --ivory: #f2e5d5;
  --muted: #a99b91;
  --dim: #716660;
  --red: #de003c;
  --red-hot: #ff2458;
  --line: rgba(242, 229, 213, 0.16);
  --line-soft: rgba(242, 229, 213, 0.08);
  --page: min(1180px, calc(100vw - 64px));
  --header-h: 72px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 79% 9%, rgba(126, 0, 31, 0.2), transparent 31rem),
    radial-gradient(circle at 10% 42%, rgba(73, 13, 22, 0.16), transparent 37rem),
    linear-gradient(120deg, #070605, #0c0808 52%, #080706);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25vw - 1px), rgba(255, 255, 255, 0.035) 25vw),
    repeating-linear-gradient(0deg, transparent 0, transparent 79px, rgba(255, 255, 255, 0.018) 80px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 4px;
}

.frame {
  width: var(--page);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  translate: 0 -150%;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: translate 160ms ease;
}

.skip-link:focus {
  translate: 0;
}

.reading-progress {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--red-hot);
  box-shadow: 0 0 16px rgba(255, 36, 88, 0.65);
}

.site-header {
  position: relative;
  z-index: 30;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 7, 6, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.brand-mark::before {
  width: 13px;
  height: 13px;
  border: 1px solid var(--ivory);
}

.brand-mark::after {
  width: 4px;
  height: 4px;
  background: var(--red-hot);
  box-shadow: 0 0 10px var(--red-hot);
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 13px;
  letter-spacing: 0.16em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  padding-block: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  scale: 0 1;
  transform-origin: right;
  background: var(--red);
  transition: scale 180ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ivory);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  scale: 1;
  transform-origin: left;
}

.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid rgba(242, 229, 213, 0.35);
  color: var(--ivory);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease;
}

.header-action:hover {
  border-color: var(--red);
  background: rgba(222, 0, 60, 0.1);
}

.menu-trigger {
  display: none;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-bottom: 1px solid var(--line);
}

.legal-hero::before {
  position: absolute;
  top: 12%;
  right: max(-90px, calc((100vw - 1180px) / 2 - 140px));
  width: 440px;
  aspect-ratio: 1;
  border: 1px solid rgba(242, 229, 213, 0.1);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 55px rgba(255, 255, 255, 0.012),
    0 0 0 118px rgba(222, 0, 60, 0.025),
    inset 0 0 90px rgba(222, 0, 60, 0.08);
}

.legal-hero::after {
  position: absolute;
  right: 14%;
  bottom: -90px;
  width: 1px;
  height: 310px;
  rotate: 43deg;
  content: "";
  background: linear-gradient(transparent, var(--red), transparent);
  box-shadow: 0 0 28px var(--red);
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
  gap: 60px;
  padding-block: 112px 68px;
}

.legal-kicker,
.legal-index-label,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.legal-kicker span {
  margin-right: 14px;
  color: var(--red-hot);
}

.legal-hero h1 {
  max-width: 900px;
  margin: 18px 0 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(66px, 8.2vw, 126px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.78;
}

.legal-hero h1 em {
  display: block;
  margin-left: 0.7em;
  color: var(--red-hot);
  font-weight: 400;
}

.legal-hero h1.title-long {
  font-size: clamp(55px, 6.8vw, 104px);
}

.legal-hero-copy > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-version {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 20px 18px 18px;
  border-top: 1px solid var(--red);
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-version::before {
  position: absolute;
  top: -4px;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--red-hot);
  box-shadow: 0 0 12px var(--red-hot);
}

.legal-version strong {
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.legal-version small {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  color: rgba(242, 229, 213, 0.35);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  letter-spacing: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  align-items: start;
  gap: clamp(54px, 8vw, 120px);
  padding-block: 88px 120px;
}

.legal-index {
  position: sticky;
  top: 32px;
  display: grid;
  border-top: 1px solid var(--line);
}

.legal-index-label {
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
}

.legal-index a {
  position: relative;
  padding: 14px 24px 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  transition: color 160ms ease, padding-left 160ms ease;
}

.legal-index a::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  translate: 0 -50%;
}

.legal-index a:hover {
  padding-left: 6px;
  color: var(--ivory);
}

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

.legal-index a[aria-current="page"]::after {
  border-color: var(--red-hot);
  background: var(--red-hot);
  box-shadow: 0 0 10px var(--red-hot);
}

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

.legal-outline {
  margin: 0 0 48px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(98, 8, 29, 0.16), rgba(255, 255, 255, 0.01));
}

.legal-outline summary {
  position: relative;
  padding: 17px 52px 17px 20px;
  cursor: pointer;
  color: var(--ivory);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  list-style: none;
  text-transform: uppercase;
}

.legal-outline summary::-webkit-details-marker {
  display: none;
}

.legal-outline summary::after {
  position: absolute;
  top: 50%;
  right: 21px;
  content: "+";
  translate: 0 -50%;
  color: var(--red-hot);
  font-size: 20px;
  font-weight: 300;
}

.legal-outline[open] summary::after {
  content: "−";
}

.legal-outline nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.legal-outline a {
  padding: 12px 20px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
  transition: color 160ms ease, background 160ms ease;
}

.legal-outline a:hover {
  color: var(--ivory);
  background: rgba(222, 0, 60, 0.07);
}

.legal-lead {
  margin: 0 0 58px;
  padding-left: 26px;
  border-left: 1px solid var(--red);
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.22;
}

.legal-lead a,
.legal-content a {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: rgba(222, 0, 60, 0.7);
  text-underline-offset: 4px;
}

.legal-content {
  counter-reset: clause;
}

.legal-content section {
  position: relative;
  scroll-margin-top: 30px;
  padding: 42px 0 48px 70px;
  border-top: 1px solid var(--line);
  counter-increment: clause;
}

.legal-content section::before {
  position: absolute;
  top: 47px;
  left: 0;
  content: counter(clause, decimal-leading-zero);
  color: var(--red-hot);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.legal-content section::after {
  position: absolute;
  top: 54px;
  left: 26px;
  width: 25px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--red), transparent);
}

.legal-content h2 {
  margin: 0 0 22px;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.05;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 14px;
}

.legal-content p {
  max-width: 790px;
  margin: 0 0 14px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ol {
  margin: 20px 0 0;
  padding-left: 22px;
}

.legal-content li {
  padding: 4px 0 4px 8px;
}

.legal-content strong {
  color: var(--ivory);
  font-weight: 600;
}

.legal-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 36px;
  border: 1px solid var(--line);
}

.legal-pager a {
  position: relative;
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 22px 28px;
  transition: background 180ms ease;
}

.legal-pager a + a {
  border-left: 1px solid var(--line);
  text-align: right;
}

.legal-pager a:hover {
  background: rgba(222, 0, 60, 0.07);
}

.legal-pager span {
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-pager strong {
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 4, 3, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 50px;
  padding-block: 54px 46px;
}

.footer-brand p {
  max-width: 230px;
  margin: 20px 0 0;
  color: var(--dim);
  font-size: 11px;
}

.footer-grid nav,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-grid small {
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-grid nav a,
.footer-contact a {
  width: fit-content;
  color: var(--muted);
  font-size: 11px;
}

.footer-grid nav a:hover,
.footer-contact a:hover,
.footer-grid nav a[aria-current="page"] {
  color: var(--ivory);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px 24px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  :root {
    --page: min(100% - 40px, 760px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .menu-trigger {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border: 0;
    color: var(--ivory);
    background: transparent;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .menu-trigger i,
  .menu-trigger i::after {
    display: block;
    width: 16px;
    height: 1px;
    content: "";
    background: currentColor;
    transition: rotate 180ms ease, translate 180ms ease;
  }

  .menu-trigger i::after {
    translate: 0 5px;
  }

  .menu-trigger[aria-expanded="true"] i {
    rotate: 45deg;
  }

  .menu-trigger[aria-expanded="true"] i::after {
    rotate: -90deg;
    translate: 0;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0 max(20px, calc((100vw - 760px) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(8, 7, 6, 0.98);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 17px 8px;
    border-right: 1px solid var(--line-soft);
    text-align: center;
  }

  .header-action {
    display: none;
  }

  .legal-hero,
  .legal-hero-inner {
    min-height: 410px;
  }

  .legal-hero-inner {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 90px 48px;
  }

  .legal-version {
    max-width: 250px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-block: 60px 90px;
  }

  .legal-index {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-index-label {
    grid-column: 1 / -1;
  }

  .legal-index a:nth-of-type(odd) {
    border-right: 1px solid var(--line-soft);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  :root {
    --page: calc(100% - 28px);
    --header-h: 64px;
  }

  .brand-copy strong {
    font-size: 11px;
  }

  .brand-copy small {
    font-size: 6px;
  }

  .main-nav {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .main-nav a {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .legal-hero,
  .legal-hero-inner {
    min-height: 430px;
  }

  .legal-hero-inner {
    padding-block: 76px 38px;
  }

  .legal-hero h1,
  .legal-hero h1.title-long {
    font-size: clamp(50px, 18vw, 75px);
    line-height: 0.84;
  }

  .legal-hero h1 em {
    margin-left: 0.2em;
  }

  .legal-hero-copy > p:last-child {
    font-size: 12px;
  }

  .legal-layout {
    padding-block: 44px 70px;
  }

  .legal-outline {
    margin-bottom: 38px;
  }

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

  .legal-outline a {
    border-right: 0;
  }

  .legal-lead {
    margin-bottom: 42px;
    padding-left: 18px;
    font-size: 25px;
  }

  .legal-content section {
    padding: 34px 0 40px 42px;
  }

  .legal-content section::before {
    top: 39px;
  }

  .legal-content section::after {
    display: none;
  }

  .legal-content h2 {
    font-size: 29px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 13px;
  }

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

  .legal-pager a {
    min-height: 96px;
  }

  .legal-pager a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 24px;
  }

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

  .footer-bottom {
    display: grid;
  }
}

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

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