@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin-variable.woff2") format("woff2");
}

:root {
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #0b090a;
  --paper: #f1eee7;
  --muted: #625d60;
  --line: rgba(11, 9, 10, .14);
  --gold: #c9a55c;
  --gold-dark: #6f5526;
  --gutter: clamp(24px, 3.35vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #050304;
  scroll-behavior: smooth;
  scrollbar-color: rgba(201,165,92,.72) #090708;
  scrollbar-width: thin;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-optical-sizing: auto;
  font-synthesis: none;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; -webkit-tap-highlight-color: transparent; }
p { text-wrap: pretty; }

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

::selection { color: var(--ink); background: var(--gold); }

.not-found-page {
  min-height: 100svh;
  color: white;
  background: var(--ink);
}

.not-found-main {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(144px, 18vh, 208px) var(--gutter) max(48px, env(safe-area-inset-bottom));
  overflow: clip;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  isolation: isolate;
  background:
    radial-gradient(circle at 84% 22%, rgba(201,165,92,.1), transparent 26%),
    linear-gradient(145deg, #0b090c 0%, #050304 72%, #0a0709 100%);
}

.not-found-rosette {
  position: absolute;
  z-index: -1;
  right: -12vw;
  bottom: -22vw;
  width: min(68vw, 900px);
  height: auto;
  fill: none;
  stroke: rgba(201,165,92,.1);
  stroke-width: .4;
  pointer-events: none;
}

.not-found-kicker {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .16em;
}

.not-found-kicker span:last-child { color: rgba(255,255,255,.4); text-align: right; }

.not-found-copy {
  grid-column: 1 / 10;
  align-self: center;
  padding: clamp(48px, 8vh, 96px) 0;
}

.not-found-index {
  margin: 0 0 24px;
  color: rgba(201,165,92,.24);
  font-size: clamp(96px, 15vw, 224px);
  font-weight: 300;
  line-height: .72;
  letter-spacing: -.07em;
}

.not-found-copy h1 {
  max-width: 9.5ch;
  margin: 0;
  font-size: clamp(54px, 8.8vw, 136px);
  font-weight: 390;
  line-height: .9;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.not-found-copy > p:last-child {
  max-width: 43ch;
  margin: clamp(32px, 5vh, 56px) 0 0;
  color: rgba(255,255,255,.62);
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 350;
  line-height: 1.4;
}

.not-found-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  border-top: 1px solid rgba(255,255,255,.16);
}

.not-found-actions a {
  display: flex;
  min-height: 80px;
  padding: 16px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255,255,255,.78);
  border-right: 1px solid rgba(255,255,255,.16);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .14em;
  text-decoration: none;
  transition: color 350ms var(--ease), background-color 350ms var(--ease);
}

.not-found-actions a + a { padding-left: 32px; border-right: 0; }
.not-found-actions a:hover { color: var(--gold); }
.not-found-actions i { color: var(--gold); font-size: 16px; font-style: normal; }

@media (max-width: 680px) {
  .not-found-main { padding-top: 128px; grid-template-columns: repeat(4, minmax(0,1fr)); }
  .not-found-copy { grid-column: 1 / -1; }
  .not-found-kicker span:last-child { display: none; }
  .not-found-rosette { right: -46vw; bottom: 8vh; width: 110vw; }
  .not-found-actions { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .not-found-actions a { min-height: 64px; border-right: 0; }
  .not-found-actions a + a { padding-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 300ms var(--ease);
}

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

.legal-nav {
  position: fixed;
  z-index: 500;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 0 var(--gutter);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(5,3,4,.92);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
}

.legal-progress {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.legal-brand,
.legal-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}

.legal-brand {
  grid-column: 1 / 4;
  width: max-content;
  gap: 11px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
}

.legal-mark {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  transition: filter 450ms ease, transform 900ms var(--ease);
}

.legal-brand:hover .legal-mark {
  filter: drop-shadow(0 0 9px rgba(201,165,92,.35));
  transform: rotate(22.5deg);
}

.legal-wordmark {
  display: block;
  width: clamp(112px, 9vw, 132px);
  height: auto;
  filter: drop-shadow(0 0 0 rgba(201,165,92,0));
  transition: filter 450ms ease, transform 700ms var(--ease);
}

.legal-brand:hover .legal-wordmark {
  filter: drop-shadow(0 0 9px rgba(201,165,92,.24));
  transform: translateY(-1px);
}

.legal-back {
  grid-column: 9 / 13;
  justify-self: end;
  gap: 14px;
  color: rgba(255,255,255,.78);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
}

.legal-back i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: var(--ink);
  background: white;
  font-size: 12px;
  font-style: normal;
  transition: transform 420ms var(--ease);
}

.legal-back:hover i { transform: translateX(-3px); }

.legal-main { overflow: clip; }

.legal-hero {
  position: relative;
  min-height: min(900px, 94svh);
  padding: clamp(150px, 17vh, 208px) var(--gutter) clamp(88px, 10vw, 144px);
  color: white;
  background:
    radial-gradient(circle at 84% 10%, rgba(201,165,92,.11), transparent 25%),
    linear-gradient(148deg, #0b090c 0%, #050304 68%, #0a0709 100%);
}

.legal-hero::after {
  position: absolute;
  right: -16vw;
  bottom: -32vw;
  width: min(70vw, 920px);
  aspect-ratio: 1;
  border: 1px solid rgba(201,165,92,.07);
  border-radius: 50%;
  box-shadow: inset 0 0 0 12vw rgba(201,165,92,.008), 0 0 100px rgba(201,165,92,.025);
  content: "";
  pointer-events: none;
}

.legal-kicker {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 16px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
}

.legal-kicker span:first-child { grid-column: 1 / 5; }
.legal-kicker span:last-child { grid-column: 9 / 13; text-align: right; color: rgba(255,255,255,.36); }

.legal-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 9ch;
  margin: clamp(64px, 9vh, 112px) 0 clamp(72px, 9vw, 128px);
  font-size: clamp(72px, 10.4vw, 164px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.legal-hero-foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  align-items: start;
  gap: 16px;
}

.legal-lead {
  grid-column: 5 / 9;
  max-width: 39ch;
  margin: 0;
  color: rgba(255,255,255,.7);
  font-size: clamp(17px, 1.5vw, 23px);
  font-weight: 350;
  line-height: 1.28;
  letter-spacing: -.015em;
}

.legal-draft {
  grid-column: 10 / 13;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(201,165,92,.58);
  color: rgba(255,255,255,.48);
  font-size: 10px;
  line-height: 1.5;
}

.legal-draft strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .14em;
}

.legal-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 16px;
  padding: clamp(88px, 10vw, 152px) var(--gutter) clamp(120px, 14vw, 208px);
}

.legal-toc {
  grid-column: 1 / 4;
  align-self: start;
  position: sticky;
  top: 112px;
  padding-right: clamp(16px, 2vw, 32px);
}

.legal-toc > span {
  display: block;
  margin-bottom: 24px;
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .16em;
}

.legal-toc nav { border-top: 1px solid var(--line); }

.legal-toc a {
  display: grid;
  grid-template-columns: 30px 1fr;
  min-height: 42px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
  transition: color 280ms ease, padding 420ms var(--ease);
}

.legal-toc a span {
  color: #745724;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
}

.legal-toc a:hover,
.legal-toc a.is-active { padding-left: 5px; color: var(--ink); }
.legal-toc a.is-active { box-shadow: inset 2px 0 0 var(--gold); }

.legal-document { grid-column: 5 / 13; min-width: 0; }

.legal-section {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 40px 0 clamp(64px, 7vw, 104px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.legal-section > span {
  padding-top: 7px;
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
}

.legal-copy { max-width: 820px; }

.legal-section h2 {
  max-width: 18ch;
  margin: 0 0 32px;
  font-size: clamp(34px, 3.7vw, 58px);
  font-weight: 430;
  line-height: .98;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.legal-section h3 {
  margin: 40px 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .015em;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.58;
}

.legal-section p { max-width: 70ch; margin: 0 0 18px; }
.legal-section ul { max-width: 70ch; margin: 18px 0 24px; padding-left: 1.1em; }
.legal-section li + li { margin-top: 8px; }
.legal-section strong { color: var(--ink); font-weight: 570; }

.legal-placeholder {
  display: inline;
  padding: .08em .28em;
  color: #6f5220;
  border-radius: 2px;
  background: rgba(201,165,92,.18);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.legal-note {
  max-width: 70ch;
  margin: 36px 0 8px;
  padding: 22px 24px;
  border-left: 2px solid var(--gold);
  color: #4f494c;
  background: rgba(201,165,92,.08);
  font-size: 14px;
  line-height: 1.55;
}

.legal-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-dark);
  font-size: 9px;
  letter-spacing: .14em;
}

.legal-footer {
  overflow: hidden;
  padding: clamp(72px, 8vw, 112px) var(--gutter) 0;
  color: white;
  border-top: 1px solid rgba(201,165,92,.45);
  background: #050304;
}

.legal-footer-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 16px;
  padding-bottom: 72px;
}

.legal-footer-statement { grid-column: 1 / 6; }
.legal-footer-statement strong { color: var(--gold); font-size: 10px; letter-spacing: .15em; }
.legal-footer-lockup { display: inline-flex; align-items: center; gap: 14px; }
.legal-footer-lockup img { display: block; width: clamp(132px, 11vw, 162px); height: auto; }
.legal-footer-lockup span { padding-left: 14px; border-left: 1px solid rgba(201,165,92,.38); }
.legal-footer-statement p { max-width: 34ch; margin: 22px 0 0; color: rgba(255,255,255,.62); font-size: clamp(18px, 1.8vw, 26px); line-height: 1.25; }

.legal-footer-links {
  grid-column: 8 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.legal-footer-links h2 { margin: 0 0 20px; color: var(--gold); font-size: 9px; letter-spacing: .15em; }
.legal-footer-links a { display: block; width: max-content; min-height: 36px; color: rgba(255,255,255,.58); font-size: 12px; text-decoration: none; transition: color 250ms ease, transform 350ms var(--ease); }
.legal-footer-links a:hover { color: white; transform: translateX(3px); }

.legal-footer-bottom {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5);
  font-size: 9px;
  letter-spacing: .1em;
}

.legal-watermark {
  margin: 0 0 -.24em;
  color: transparent;
  font-size: clamp(54px, 10vw, 148px);
  font-weight: 600;
  line-height: .8;
  letter-spacing: .06em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.legal-watermark::before {
  color: rgba(255,255,255,.035);
  content: "STAR RIDE";
}

.js .legal-hero h1,
.js .legal-hero-foot,
.js .legal-layout {
  animation: legal-enter 1.15s var(--ease) both;
}

.js .legal-hero-foot { animation-delay: 120ms; }
.js .legal-layout { animation-delay: 220ms; }

@keyframes legal-enter {
  from { opacity: 0; filter: blur(5px); transform: translateY(20px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@media (max-width: 900px) {
  .legal-hero { min-height: auto; }
  .legal-hero h1 { font-size: clamp(70px, 14vw, 120px); }
  .legal-lead { grid-column: 1 / 8; }
  .legal-draft { grid-column: 9 / 13; }
  .legal-toc { display: none; }
  .legal-document { grid-column: 1 / 13; }
  .legal-footer-statement { grid-column: 1 / 7; }
  .legal-footer-links { grid-column: 8 / 13; }
}

@media (max-width: 680px) {
  .legal-nav { height: 64px; padding: 0 20px; }
  .legal-brand { grid-column: 1 / 8; }
  .legal-back { grid-column: 8 / 13; }
  .legal-back > span { display: none; }
  .legal-hero { padding: 128px 20px 80px; }
  .legal-kicker span:first-child { grid-column: 1 / 8; }
  .legal-kicker span:last-child { grid-column: 8 / 13; }
  .legal-hero h1 { margin: 64px 0 80px; font-size: clamp(62px, 21vw, 92px); }
  .legal-hero-foot { grid-template-columns: 1fr; gap: 40px; }
  .legal-lead,
  .legal-draft { grid-column: 1; }
  .legal-lead { font-size: 19px; }
  .legal-layout { display: block; padding: 80px 20px 120px; }
  .legal-section { grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 28px 0 72px; }
  .legal-section h2 { margin-bottom: 28px; font-size: clamp(34px, 10.5vw, 46px); }
  .legal-section p,
  .legal-section li { font-size: 16px; }
  .legal-footer { padding: 72px 20px 0; }
  .legal-footer-main { grid-template-columns: 1fr; gap: 56px; }
  .legal-footer-statement,
  .legal-footer-links { grid-column: 1; }
  .legal-footer-links { grid-template-columns: repeat(2,1fr); }
  .legal-footer-bottom { align-items: flex-start; gap: 10px; padding: 22px 0; flex-direction: column; }
  .legal-watermark { font-size: 18vw; }
}

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

@media print {
  .legal-nav,
  .legal-toc,
  .legal-footer { display: none; }
  .legal-hero { min-height: auto; padding: 32px 0 48px; color: var(--ink); background: var(--paper); }
  .legal-hero::after { display: none; }
  .legal-kicker span:last-child,
  .legal-lead,
  .legal-draft { color: var(--ink); }
  .legal-layout { display: block; padding: 48px 0; }
  .legal-section { break-inside: avoid; }
}
