html,
body {
  --font-ui: "Avenir Next", "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next Condensed", "DIN Condensed", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  --page-x: clamp(28px, 5vw, 96px);
  --ink: rgba(235, 239, 235, 0.9);
  --muted: rgba(198, 210, 209, 0.58);
  --quiet: rgba(198, 210, 209, 0.34);
  width: 100%;
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(ellipse at 72% 20%, rgba(150, 198, 202, 0.026), transparent 34vw),
    radial-gradient(ellipse at 18% 68%, rgba(235, 239, 235, 0.018), transparent 36vw),
    #101010;
  color: var(--ink);
  font-family: var(--font-ui);
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

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

.legal-shell {
  box-sizing: border-box;
  min-height: 100dvh;
  width: 100%;
  padding: clamp(28px, 3.4vw, 58px) var(--page-x) clamp(64px, 7vw, 112px);
}

.legal-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(64px, 8vw, 132px);
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 650;
  line-height: 1.1;
  text-transform: uppercase;
}

.legal-back {
  color: rgba(238, 242, 238, 0.74);
  font-size: clamp(11px, 0.86vw, 13px);
  text-shadow: 0 0 18px rgba(238, 242, 238, 0.045);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.legal-back::before {
  content: "+";
  margin-right: 8px;
  color: rgba(238, 242, 238, 0.54);
}

.legal-back:hover,
.legal-back:focus-visible {
  color: rgba(255, 255, 252, 0.9);
  text-shadow: 0 0 20px rgba(238, 242, 238, 0.1);
  transform: translateX(4px);
  outline: none;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(220px, 27vw) minmax(0, 760px);
  gap: clamp(48px, 7vw, 132px);
  align-items: start;
}

.legal-title {
  position: sticky;
  top: clamp(28px, 3.4vw, 58px);
  max-width: 360px;
  margin: 0;
}

.legal-title p {
  margin: 0 0 clamp(16px, 2vw, 28px);
  color: rgba(178, 198, 198, 0.48);
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
}

.legal-title h1 {
  margin: 0;
  color: rgba(238, 241, 238, 0.86);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 68px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-content {
  max-width: 760px;
  counter-reset: legal-section;
}

.legal-section {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: clamp(18px, 2.2vw, 32px);
  margin: 0 0 clamp(36px, 4.4vw, 66px);
  counter-increment: legal-section;
}

.legal-section::before {
  content: counter(legal-section, decimal-leading-zero);
  padding-top: 0.34em;
  color: rgba(178, 198, 198, 0.28);
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 650;
  line-height: 1;
}

.legal-section > * {
  grid-column: 2;
}

.legal-section h2 {
  max-width: 700px;
  margin: 0 0 clamp(12px, 1.5vw, 18px);
  color: rgba(238, 241, 238, 0.8);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.42vw, 24px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-section p,
.legal-section li {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 430;
  line-height: 1.7;
}

.legal-section p {
  margin: 0 0 12px;
}

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

.legal-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-section li::before {
  content: "+";
  margin-right: 10px;
  color: rgba(207, 216, 214, 0.34);
}

.legal-muted {
  color: rgba(190, 202, 200, 0.44) !important;
}

.legal-placeholder {
  color: rgba(225, 216, 198, 0.66);
}

.legal-footer {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 30px);
  margin-top: clamp(64px, 8vw, 128px);
  margin-left: min(34vw, 430px);
  color: rgba(226, 226, 220, 0.3);
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
}

.legal-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.4vw, 26px);
}

.legal-footer a {
  color: rgba(226, 226, 220, 0.38);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.legal-footer a::before {
  content: "+";
  margin-right: 7px;
  color: rgba(226, 226, 220, 0.32);
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: rgba(248, 250, 247, 0.9);
  transform: translateX(3px);
  outline: none;
}

@media (max-width: 720px) {
  .legal-shell {
    padding-inline: clamp(24px, 7vw, 38px);
  }

  .legal-top {
    display: grid;
    justify-content: start;
    gap: 12px;
  }

  .legal-grid {
    display: block;
  }

  .legal-title {
    position: static;
    margin-bottom: 56px;
  }

  .legal-title h1 {
    font-size: clamp(36px, 13vw, 64px);
  }

  .legal-section {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 14px;
  }

  .legal-footer {
    display: grid;
    gap: 16px;
    margin-left: 0;
    margin-top: 52px;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
    color: rgba(238, 242, 238, 0.58);
    font-size: 10px;
  }

  .legal-footer nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 18px;
  }

  .legal-footer a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    color: rgba(238, 242, 238, 0.68);
  }

  .legal-footer a::before {
    color: rgba(238, 242, 238, 0.54);
  }
}
