:root {
  --soot: #11100e;
  --soot-2: #1a1815;
  --paper: #e9e3d7;
  --paper-2: #d8d1c3;
  --orange: #ff5a1f;
  --cobalt: #1646ff;
  --yellow: #f0cb2f;
  --quiet: #756f64;
  --line-dark: rgba(17, 16, 14, 0.2);
  --line-light: rgba(233, 227, 215, 0.2);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  background: var(--soot);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--soot);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 13px 18px;
  color: var(--paper);
  background: var(--soot);
  font: 700 0.66rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.reading-progress {
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: rgba(233, 227, 215, 0.12);
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  min-height: 84px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line-light);
  color: var(--paper);
  background: var(--soot);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: flex;
  width: 30px;
  height: 26px;
  align-items: flex-end;
  gap: 3px;
}

.brand-mark i {
  display: block;
  width: 7px;
  background: var(--orange);
}

.brand-mark i:nth-child(1) { height: 9px; opacity: 0.58; }
.brand-mark i:nth-child(2) { height: 17px; opacity: 0.8; }
.brand-mark i:nth-child(3) { height: 25px; }

.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 0.95rem; letter-spacing: 0.12em; }
.brand small,
.header-meta,
.back-link { font: 700 0.56rem/1.2 var(--mono); letter-spacing: 0.13em; text-transform: uppercase; }
.brand small { color: rgba(233, 227, 215, 0.48); }

.header-meta { display: flex; gap: 26px; color: rgba(233, 227, 215, 0.48); }

.back-link {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 15px;
}

.back-link b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(233, 227, 215, 0.34);
  color: var(--orange);
  font-size: 0.9rem;
  transition: color 160ms ease, background 160ms ease;
}

.back-link:hover b { color: var(--soot); background: var(--orange); }

.hero {
  position: relative;
  display: grid;
  min-height: min(790px, calc(100svh - 84px));
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  overflow: hidden;
  color: var(--paper);
  background: var(--soot);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 7.14vw 7.14vw;
  mask-image: linear-gradient(to bottom, black, transparent 94%);
}

.hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8.4vw;
  width: 1px;
  background: rgba(233, 227, 215, 0.28);
  content: "";
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
  height: 14px;
  background: var(--orange);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: clamp(90px, 12vw, 160px) 5.5vw clamp(70px, 9vw, 120px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 30px;
  color: rgba(233, 227, 215, 0.56);
  font: 700 0.61rem/1.2 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span { width: 36px; height: 2px; background: var(--orange); }

.hero h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(4.8rem, 10.5vw, 11.5rem);
  font-weight: 650;
  line-height: 0.8;
  letter-spacing: -0.085em;
}

.hero h1 em { color: var(--orange); font-style: normal; }

.hero-lead {
  max-width: 610px;
  margin: clamp(34px, 5vw, 64px) 0 0 8.6vw;
  color: rgba(233, 227, 215, 0.72);
  font-size: clamp(1.05rem, 1.65vw, 1.48rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  margin: 36px 0 0 8.6vw;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-action,
.download-action {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 20px;
  font: 700 0.63rem/1 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.primary-action { color: var(--soot); background: var(--orange); }
.download-action { border: 1px solid rgba(233, 227, 215, 0.32); color: var(--paper); }
.download-action:hover { border-color: var(--paper); }

.hero-version {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  padding: 0 4.5vw clamp(70px, 9vw, 120px);
  border-left: 1px solid rgba(233, 227, 215, 0.24);
}

.hero-version > span,
.hero-version small {
  font: 700 0.58rem/1.45 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-version > span { color: rgba(233, 227, 215, 0.45); }
.hero-version strong {
  margin: 22px 0 38px -0.08em;
  color: transparent;
  font-size: clamp(9rem, 24vw, 25rem);
  font-weight: 700;
  line-height: 0.62;
  letter-spacing: -0.13em;
  -webkit-text-stroke: 2px var(--paper);
}
.hero-version small { max-width: 220px; color: var(--yellow); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-dark);
  background: var(--yellow);
}

.facts div {
  display: grid;
  min-height: 144px;
  align-content: center;
  padding: 24px 4vw;
  border-right: 1px solid rgba(17, 16, 14, 0.26);
}

.facts div:last-child { border-right: 0; }
.facts strong { font-size: clamp(2.7rem, 5vw, 5.5rem); line-height: 0.9; letter-spacing: -0.07em; }
.facts span { margin-top: 13px; font: 700 0.57rem/1 var(--mono); letter-spacing: 0.13em; }

.mobile-toc { display: none; }

.legal-layout {
  display: grid;
  grid-template-columns: minmax(250px, 25vw) minmax(0, 1fr);
  align-items: start;
  background: var(--paper);
}

.toc-panel {
  position: sticky;
  top: 0;
  max-height: 100svh;
  overflow: auto;
  padding: 42px 28px 34px 4vw;
  color: var(--paper);
  background: var(--soot-2);
  scrollbar-width: thin;
  scrollbar-color: var(--orange) transparent;
}

.toc-panel > p {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 25px;
  color: rgba(233, 227, 215, 0.5);
  font: 700 0.57rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc-panel > p span { width: 28px; height: 2px; background: var(--orange); }

.toc-panel nav { display: grid; }

.toc-panel nav a,
.mobile-toc nav a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(233, 227, 215, 0.12);
  color: rgba(233, 227, 215, 0.48);
  transition: color 140ms ease, padding-left 140ms ease;
}

.toc-panel nav a span,
.mobile-toc nav a span { font: 700 0.54rem/1 var(--mono); letter-spacing: 0.08em; }
.toc-panel nav a strong,
.mobile-toc nav a strong { font-size: 0.72rem; font-weight: 550; line-height: 1.2; }
.toc-panel nav a:hover,
.toc-panel nav a[aria-current="true"] { padding-left: 7px; color: var(--paper); }
.toc-panel nav a[aria-current="true"] span { color: var(--orange); }
.toc-panel .toc-annexes { margin-top: 20px; }

.toc-download {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  padding: 22px;
  color: var(--soot);
  background: var(--orange);
}

.toc-download strong { font-size: 0.78rem; text-transform: uppercase; }
.toc-download span { font-size: 0.72rem; line-height: 1.45; }
.toc-download a { margin-top: 4px; font: 700 0.58rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

.terms-document { min-width: 0; }

.document-intro {
  display: grid;
  grid-template-columns: 150px minmax(0, 760px);
  gap: 28px;
  padding: clamp(70px, 9vw, 130px) 7vw;
  border-bottom: 1px solid var(--line-dark);
}

.document-intro > p,
.section-index {
  margin: 0;
  color: var(--quiet);
  font: 700 0.57rem/1.4 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.document-intro h2 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(2.6rem, 5.3vw, 6rem);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.document-intro div p {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--quiet);
  font-size: 1rem;
  line-height: 1.6;
}

.terms-section {
  display: grid;
  grid-template-columns: 150px minmax(0, 760px);
  gap: 28px;
  padding: clamp(64px, 7vw, 104px) 7vw;
  border-bottom: 1px solid var(--line-dark);
  scroll-margin-top: 20px;
}

.terms-section:target { box-shadow: inset 8px 0 0 var(--orange); }

.section-body { min-width: 0; }
.section-body > h2,
.section-body > .annex-heading {
  margin: 0 0 44px;
  font-size: clamp(2.15rem, 4.2vw, 4.7rem);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.section-body > .annex-heading {
  color: var(--orange);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-body > .annex-heading + h2 { margin-top: -22px; }

.section-body h3 {
  margin: 42px 0 18px;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
}

.section-body p,
.section-body li {
  font-size: clamp(0.98rem, 1.18vw, 1.12rem);
  line-height: 1.72;
}

.section-body p { margin: 0 0 22px; }
.section-body ol,
.section-body ul { margin: 0 0 26px; padding-left: 1.35rem; }
.section-body li { padding-left: 0.55rem; margin: 0 0 11px; }
.section-body li::marker { color: var(--orange); font: 700 0.75em var(--mono); }
.section-body ol ol,
.section-body ul ul,
.section-body ol ul,
.section-body ul ol { margin: 12px 0 16px; }
.section-body strong { font-weight: 720; }

.terms-section--annex {
  color: var(--paper);
  border-bottom-color: rgba(233, 227, 215, 0.22);
  background: var(--cobalt);
}

.terms-section--annex .section-index { color: rgba(233, 227, 215, 0.58); }
.terms-section--annex .section-body > .annex-heading { color: var(--yellow); }
.terms-section--annex .section-body li::marker { color: var(--yellow); }
.terms-section--annex .section-body p:empty { min-height: 12px; border-bottom: 1px solid rgba(233, 227, 215, 0.46); }

.closing {
  position: relative;
  display: grid;
  min-height: 620px;
  align-content: center;
  padding: 100px 8vw;
  overflow: hidden;
  color: var(--paper);
  background: var(--soot);
}

.closing::before {
  position: absolute;
  top: -16vw;
  right: -12vw;
  width: 45vw;
  height: 45vw;
  border: 1px solid rgba(233, 227, 215, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 7vw rgba(255, 90, 31, 0.08), 0 0 0 14vw rgba(22, 70, 255, 0.08);
  content: "";
}

.closing > * { position: relative; z-index: 1; }
.closing > p { margin: 0 0 28px; color: var(--orange); font: 700 0.59rem/1 var(--mono); letter-spacing: 0.14em; }
.closing h2 { margin: 0; font-size: clamp(4.2rem, 10vw, 10rem); font-weight: 650; line-height: 0.82; letter-spacing: -0.08em; }
.closing h2 em { color: var(--orange); font-style: normal; }
.closing > div { display: flex; gap: 12px; margin-top: 58px; flex-wrap: wrap; }
.closing a { display: inline-flex; min-height: 56px; align-items: center; gap: 38px; padding: 0 20px; border: 1px solid rgba(233, 227, 215, 0.3); font: 700 0.62rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.closing a:first-child { color: var(--soot); border-color: var(--orange); background: var(--orange); }

.site-footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5.5vw;
  color: rgba(233, 227, 215, 0.62);
  background: var(--soot);
  border-top: 1px solid var(--line-light);
  font: 700 0.56rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) 310px; }
  .hero-lead,
  .hero-actions { margin-left: 0; }
  .legal-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .document-intro,
  .terms-section { grid-template-columns: 110px minmax(0, 1fr); padding-right: 5vw; padding-left: 5vw; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 20px; }
  .site-header { min-height: 72px; grid-template-columns: 1fr auto; padding: 0 18px; }
  .header-meta { display: none; }
  .back-link span { display: none; }
  .hero { min-height: calc(100svh - 72px); grid-template-columns: 1fr; }
  .hero::before { left: 18px; }
  .hero::after { width: 68%; height: 9px; }
  .hero-copy { align-self: start; padding: 94px 18px 28px; }
  .hero h1 { font-size: clamp(4.35rem, 20vw, 8rem); }
  .hero-lead { max-width: 510px; margin-top: 34px; padding-left: 32px; }
  .hero-actions { padding-left: 32px; }
  .hero-version { min-height: 255px; padding: 18px 18px 54px 50px; border-top: 1px solid rgba(233, 227, 215, 0.24); border-left: 0; }
  .hero-version strong { position: absolute; right: 18px; bottom: 42px; margin: 0; font-size: clamp(10rem, 45vw, 16rem); }
  .hero-version small { position: relative; z-index: 1; align-self: end; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div { min-height: 120px; padding: 22px 18px; border-bottom: 1px solid rgba(17, 16, 14, 0.26); }
  .legal-layout { display: block; }
  .toc-panel { display: none; }
  .mobile-toc { display: block; border-bottom: 1px solid var(--line-dark); background: var(--soot-2); color: var(--paper); }
  .mobile-toc summary { display: flex; min-height: 66px; align-items: center; justify-content: space-between; padding: 0 18px; cursor: pointer; font: 700 0.63rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
  .mobile-toc summary::-webkit-details-marker { display: none; }
  .mobile-toc[open] summary span { transform: rotate(45deg); }
  .mobile-toc > div { max-height: 72svh; overflow: auto; padding: 0 18px 24px; }
  .mobile-toc nav a { color: rgba(233, 227, 215, 0.68); }
  .mobile-toc .toc-annexes { margin-top: 18px; }
  .document-intro,
  .terms-section { grid-template-columns: 1fr; gap: 24px; padding: 68px 18px; }
  .document-intro { padding-top: 84px; }
  .section-body > h2,
  .section-body > .annex-heading { margin-bottom: 34px; }
  .terms-section:target { box-shadow: inset 5px 0 0 var(--orange); }
  .closing { min-height: 540px; padding: 90px 18px; }
  .closing h2 { font-size: clamp(4rem, 19vw, 7.2rem); }
  .site-footer { min-height: 132px; flex-direction: column; justify-content: center; padding: 28px 18px; }
}

@media (max-width: 480px) {
  .brand small { display: none; }
  .hero-actions { display: grid; padding-left: 0; }
  .primary-action,
  .download-action { width: 100%; }
  .facts strong { font-size: 2.8rem; }
  .facts span { font-size: 0.5rem; }
  .section-body p,
  .section-body li { font-size: 0.97rem; line-height: 1.68; }
  .closing > div { display: grid; }
  .closing a { justify-content: space-between; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media print {
  :root { --paper: #fff; --soot: #000; }
  .reading-progress,
  .site-header,
  .hero,
  .facts,
  .mobile-toc,
  .toc-panel,
  .closing,
  .site-footer { display: none !important; }
  .legal-layout { display: block; }
  .document-intro,
  .terms-section { display: block; padding: 20mm 0; break-inside: avoid; }
  .section-index { margin-bottom: 8mm; }
  .terms-section--annex { color: #000; background: #fff; }
}
