/*
 * drive.vestra.systems
 * Built on the vestracorp.com system: black, hairlines, one cobalt signal, the horizon.
 * Display: Inter Display Bold (Latin subset). Text: Inter variable. Data: system mono.
 * Both fonts are SIL OFL 1.1; licences in ../fonts/OFL.txt and ../fonts/OFL-Inter.txt.
 */

@font-face {
  font-family: "Vestra Display";
  src: url("../fonts/InterDisplay-Bold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Vestra Text";
  src: url("../fonts/Inter-latin-var.woff2") format("woff2-variations"),
       url("../fonts/Inter-latin-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #000;
  --bg-2: #07080a;
  --surface: #0d0f13;
  --surface-2: #14171c;
  --ink: #f2f4f7;
  --ink-2: #b9c0ca;
  --muted: #8c95a2;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --accent: #2563eb;          /* fills: white text on it is 5.2:1 */
  --accent-hover: #1d4ed8;
  --signal: #8ab4ff;          /* accent as text on black: 10:1 */
  --glow: 96, 150, 255;

  --font-display: "Vestra Display", "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Vestra Text", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --max: 1360px;
  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --col-gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));

  --space-s: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  --space-m: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --space-l: clamp(2.5rem, 2rem + 2vw, 4rem);
  --space-xl: clamp(4.5rem, 3rem + 5vw, 8.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font-weight: 600;
  transform: translateY(-200%);
}

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

/* ---------------------------------------------------------------- Nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.62);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: auto;
}

.nav-links {
  display: none;
  gap: 2rem;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.nav-links a {
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease-out);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-left: auto;
  padding: 0 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 0.5rem; }
}

@media (hover: hover) {
  .nav-links a:hover { color: var(--ink); }
  .nav-cta:hover { background: var(--ink); border-color: var(--ink); color: #000; }
}

/* ---------------------------------------------------------- Shared type */

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.section {
  position: relative;
  padding-block: var(--space-xl);
}

.section-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: var(--space-l);
}

.section-note {
  max-width: 34rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

@media (min-width: 960px) {
  .section-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
  }
  .section-head .h2 { grid-column: 1 / span 7; }
  .section-head .section-note { grid-column: 9 / span 4; padding-bottom: 0.4rem; }
  .section-head-wide .h2 { grid-column: 1 / span 8; }
}

/* Word mask used by the hero headline (CSS) and section titles (GSAP). */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.04em 0.14em 0;
  margin-bottom: -0.14em;
}

.w > span {
  display: inline-block;
}

/* Links */
.link-inline {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.link-arrow,
.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 500;
}

.link-arrow .ico,
.link-quiet .ico {
  transition: transform 0.35s var(--ease-out);
}

.link-quiet {
  min-height: 44px;
  color: var(--ink-2);
  transition: color 0.25s var(--ease-out);
}

@media (hover: hover) {
  .link-inline:hover { text-decoration-color: var(--signal); }
  .link-arrow:hover .ico { transform: translateX(4px); }
  .link-quiet:hover { color: var(--ink); }
  .link-quiet:hover .ico { transform: translate(2px, -2px); }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.btn .ico {
  transition: transform 0.35s var(--ease-out);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
}

.btn:active {
  filter: brightness(0.92);
}

@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-primary:hover .ico { transform: translateX(3px); }
  .btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #000; }
  .btn-ghost:hover .ico { transform: translate(2px, -2px); }
}

/* ---------------------------------------------------------------- Hero */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 1rem + 9vh, 9rem));
  overflow: clip;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  max-width: 11.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.1rem + 6vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 35rem;
  margin-top: clamp(1.25rem, 1rem + 1vw, 2rem);
  font-size: clamp(1.06rem, 0.98rem + 0.35vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);
}

.horizon {
  position: relative;
  z-index: 1;
  height: 300px;
  margin-top: 1rem;
  pointer-events: none;
}

@media (min-width: 768px) {
  .horizon {
    height: auto;
    aspect-ratio: 1672 / 611;
    margin-top: -4vw;
  }
}

.horizon-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 0;
  transform-origin: 50% 19%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 58%, transparent 100%);
}

/* Positioned wrapper sits on the arc's apex; GSAP only touches the core inside it. */
.horizon-flare {
  position: absolute;
  left: 50%;
  top: 19%;
  width: min(64vw, 920px);
  aspect-ratio: 3 / 1;
  transform: translate(-50%, -50%);
}

.horizon-flare::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.6), rgba(var(--glow), 0.28) 45%, rgba(var(--glow), 0) 100%);
  mix-blend-mode: screen;
  opacity: var(--flare, 0.3);
  transform: scale(var(--flare-scale, 1));
}

/* Load-in: pure CSS, so nothing waits on JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .w > span {
    animation: word-up 1.15s var(--ease-expo) both;
    animation-delay: calc(0.1s + var(--i, 0) * 0.055s);
  }
  .rise {
    animation: rise 0.95s var(--ease-expo) both;
    animation-delay: var(--d, 0s);
  }
  .horizon {
    animation: dawn 2.2s var(--ease-expo) 0.2s both;
  }
}

@keyframes word-up {
  from { transform: translateY(108%); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

@keyframes dawn {
  from { opacity: 0; transform: translateY(9%); }
}

/* ---------------------------------------------------------- Principles */

.rules {
  display: grid;
  gap: var(--space-l);
}

.rule {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  max-width: 34rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.rule h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.rule p {
  color: var(--ink-2);
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .rules {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: var(--space-l);
  }
  .rule:nth-child(odd) { grid-column: 1 / span 5; }
  .rule:nth-child(even) { grid-column: 7 / span 5; transform: translateY(clamp(2rem, 6vw, 6rem)); }
  .rules { padding-bottom: clamp(2rem, 6vw, 6rem); }
}

/* ----------------------------------------------------------- Vestra One */

.one {
  padding-top: 0;
}

.one-panel {
  position: relative;
  display: grid;
  gap: var(--space-l);
  padding: clamp(1.5rem, 1rem + 3.5vw, 4.5rem);
  border: 1px solid var(--line-2);
  border-radius: clamp(16px, 2vw, 28px);
  background: var(--bg-2);
  overflow: hidden;
}

.one-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--glow), 0), rgba(190, 215, 255, 0.85) 50%, rgba(var(--glow), 0));
}

.one-panel::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 70%;
  height: 160px;
  transform: translate(-50%, -60%);
  background: radial-gradient(closest-side, rgba(var(--glow), 0.18), rgba(var(--glow), 0));
  pointer-events: none;
}

.one-head {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.one-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 1.8rem + 5.4vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.one-sub {
  color: var(--ink-2);
}

.one-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.35rem;
}

.one-price b {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.one-price span {
  color: var(--muted);
}

.one-price .one-or {
  flex-basis: 100%;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.one-list {
  margin-top: 1.75rem;
}

.one-list li {
  padding-block: 0.95rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

.one-list b {
  color: var(--ink);
  font-weight: 600;
}

.one-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
}

.one-links a {
  min-height: 44px;
}

@media (min-width: 900px) {
  .one-panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: var(--space-l);
  }
}

/* -------------------------------------------------------------- Footer */

.footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 3rem + 6vw, 9rem);
}

/* The horizon again, setting this time: a vast circle whose top edge catches the light. */
.footer-horizon {
  position: absolute;
  top: clamp(2rem, 1rem + 4vw, 5rem);
  left: 50%;
  width: 240vw;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border-top: 1.5px solid rgba(175, 205, 255, 0.95);
  box-shadow:
    inset 0 10px 22px -12px rgba(var(--glow), 0.9),
    inset 0 40px 90px -40px rgba(var(--glow), 0.4);
  -webkit-mask-image: linear-gradient(90deg, transparent 26%, #000 42%, #000 58%, transparent 74%);
  mask-image: linear-gradient(90deg, transparent 26%, #000 42%, #000 58%, transparent 74%);
  opacity: var(--set, 0.8);
  pointer-events: none;
}

.footer .wrap {
  position: relative;
}

.footer-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 1rem + 22vw, 22rem);
  line-height: 0.82;
  letter-spacing: -0.065em;
  color: #1a1e25;
  user-select: none;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  transition: color 0.25s var(--ease-out);
}

@media (hover: hover) {
  .footer-bar a:hover { color: var(--ink); }
}


/* =================================================== Drive additions */

.ico-down {
  transform: rotate(90deg);
}

@media (hover: hover) {
  .link-quiet:hover .ico-down { transform: rotate(90deg) translateX(3px); }
}

/* ----------------------------------------------------------- Features */

.features {
  position: relative;
  z-index: 2;
  margin-top: clamp(-12rem, -9vw, -1rem);
  padding-top: 0;
}

/* -------------------------------------------------------------- Plans */

.plans {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.ledger {
  display: grid;
}

.plan {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-top: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  padding-bottom: clamp(2.75rem, 2rem + 2.5vw, 4.25rem);
}

/* Small screens: the price sits with the storage it buys. */
@media (max-width: 899.98px) {
  .plan-cost { order: 2; }
  .plan-list { order: 3; }
}

.plan:last-child {
  border-bottom: 1px solid var(--line);
}

/* The capacity rule: a hairline across each plan, lit in cobalt to scale
   (5, 10 and 50 GB out of 50). It is the only chart on the page. */
.plan-rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.plan-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--cap, 1) * 100%);
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--glow), 0.35), var(--signal));
  transform: scaleX(var(--fill, 1));
  transform-origin: left;
}

.plan-fill::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dbe7ff;
  box-shadow: 0 0 10px 2px rgba(var(--glow), 0.75);
}

.plan-id {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.plan-num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.plan-num span {
  margin-right: 0.6rem;
  color: var(--signal);
}

.plan-gb {
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.plan-gb small {
  font-size: 0.3em;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.plan-desc {
  max-width: 22rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

.plan-list li {
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-2);
}

.plan-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.plan-cost {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.plan-price small {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.plan-terms {
  max-width: 19rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 900px) {
  .plan {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }
  .plan-id { grid-column: 1 / span 4; }
  .plan-list { grid-column: 5 / span 5; }
  .plan-cost {
    grid-column: 10 / span 3;
    justify-items: end;
    text-align: right;
  }
}

.plans-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-top: var(--space-l);
}

.footnote {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.plans-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
}

/* ------------------------------------------------------- Vestra One */

.one {
  padding-top: var(--space-l);
}

.one .one-title {
  font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.75rem);
  line-height: 1;
  text-wrap: balance;
}

.one-body {
  display: grid;
  gap: 1rem;
  align-content: end;
}

.one-body > p:not(.one-links) {
  max-width: 32rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

.one-body .one-links {
  margin-top: 0.5rem;
}

/* ---------------------------------------------------- Footer columns */

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem var(--col-gap);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

@media (min-width: 720px) {
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.footer-h {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: color 0.25s var(--ease-out);
}

@media (hover: hover) {
  .footer-col a:hover { color: var(--ink); }
}

/* ------------------------------------------------------ Legal pages */

.legal-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 1rem + 8vh, 7rem));
  padding-bottom: var(--space-l);
  border-bottom: 1px solid var(--line);
  overflow: clip;
}

.legal-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(70vw, 900px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(var(--glow), 0), rgba(190, 215, 255, 0.85) 50%, rgba(var(--glow), 0));
}

.legal-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(80vw, 1000px);
  height: 180px;
  transform: translate(-50%, 50%);
  background: radial-gradient(closest-side, rgba(var(--glow), 0.16), rgba(var(--glow), 0));
  pointer-events: none;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.3rem + 5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.legal-meta {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.legal-meta strong {
  font-weight: 400;
  color: var(--muted);
}

.legal {
  padding-block: var(--space-l) var(--space-xl);
}

.legal-body {
  max-width: 46rem;
}

.legal-body section {
  padding-block: clamp(1.75rem, 1.3rem + 1.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

.legal-body section:first-child {
  padding-top: 0;
}

.legal-body h2 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.legal-body p {
  color: var(--ink-2);
  line-height: 1.7;
  text-wrap: pretty;
}

.legal-body p + p,
.legal-body p + .note,
.legal-body .note + .note,
.legal-body .note + p {
  margin-top: 1rem;
}

.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.25s var(--ease-out);
}

@media (hover: hover) {
  .legal-body a:hover { text-decoration-color: var(--signal); }
}

.note {
  padding: 0.15rem 0 0.15rem 1.25rem;
  border-left: 1px solid var(--line-2);
}

.note-key {
  border-left-color: var(--signal);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-top: var(--space-m);
  font-size: 0.9rem;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.footer-slim {
  padding-top: 0;
}

/* ------------------------------------------------------ Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
