@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --night: #07080b;
  --deep: #0f1117;
  --cloud: #161922;
  --slate: #1c1f28;
  --glass: rgba(30, 33, 43, 0.9);
  --line: rgba(255, 255, 255, 0.09);
  --frost: #f3f5f9;
  --mist: #9ba3b4;
  --dim: #5d6577;
  --volt: #ffd84d;
  --volt-soft: rgba(255, 216, 77, 0.14);
  --ion: #7c9cff;
  --nyx: #9d7bff;
  --danger: #ff5a5f;
  --ink: #15171d;
  --r-tile: 16px;
  --r-card: 22px;
  --r-sheet: 34px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(3.5rem, 7vw, 6rem);
  --charge: 1.2s;
}

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

html {
  background: var(--night);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--frost);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ol,
ul,
dl,
dd,
figure,
fieldset {
  margin: 0;
  padding: 0;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
}

h1,
h2 {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  max-width: 11.5em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 13em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--volt);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.split.reverse > :first-child {
  order: 2;
}

main > section {
  padding-block: var(--section);
}

.section-lede {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--mist);
  font-size: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--volt);
  color: var(--ink);
}

.button.primary:hover {
  background: #ffe27a;
}

/* Header */

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.brand img {
  border-radius: 9px;
}

.top nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 1rem;
}

.top nav a {
  color: var(--mist);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--frost);
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: min(100svh, 62rem);
  padding: 6.5rem var(--gutter) 2rem;
  max-width: 80rem;
  margin-inline: auto;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: radial-gradient(ellipse 55% 70% at 78% 50%, rgba(255, 216, 77, 0.07), rgba(7, 8, 11, 0) 70%), var(--night);
}

.lede {
  max-width: 34rem;
  margin-top: 1.75rem;
  color: #c7ccd6;
  font-size: 1.25rem;
}

.seen {
  margin-top: 1.5rem;
  color: var(--mist);
}

.seen strong {
  color: var(--frost);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.hero[data-state="protected"] .seen strong {
  color: var(--volt);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

.soon {
  color: var(--mist);
  font-size: 0.95rem;
}

/* Phone: generated device photo, live screen laid over its glass */

.phone {
  position: relative;
  justify-self: center;
  width: min(30rem, 94vw);
  container-type: inline-size;
}

.phone-art {
  width: 100%;
  height: auto;
}

.screen {
  position: absolute;
  left: 22.2%;
  top: 11.25%;
  width: 55.6%;
  height: 77.5%;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  padding: 0.35em 0.75em 0.9em;
  border-radius: 4.3cqw;
  overflow: hidden;
  font-size: 2.55cqw;
  line-height: 1.35;
  background: radial-gradient(circle at 50% 22%, rgba(255, 216, 77, 0) 0, rgba(7, 8, 11, 0) 40%);
  transition: background 0.6s;
}

.phone[data-state="protected"] .screen {
  background: radial-gradient(circle at 50% 22%, rgba(255, 216, 77, 0.2) 0, rgba(7, 8, 11, 0) 42%);
}

.status {
  display: flex;
  justify-content: space-between;
  padding: 0.25em 1.1em 0;
  font-size: 0.9em;
  font-weight: 700;
}

.status-icons {
  width: 4em;
  height: 0.75em;
  margin-top: 0.3em;
  border-radius: 0.2em;
  background: linear-gradient(90deg, var(--frost) 0 30%, transparent 30% 40%, var(--frost) 40% 62%, transparent 62% 70%, var(--frost) 70%);
  opacity: 0.85;
}

.sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55em;
  margin-top: 0.6em;
  padding: 1em 0.9em 1em;
  border-radius: 2.2em;
  background: rgba(20, 22, 30, 0.9);
  border: 1px solid var(--line);
  text-align: center;
}

.sheet-name {
  color: var(--mist);
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.bolt {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.6em;
  height: 4.6em;
  border-radius: 50%;
  background: var(--cloud);
  border: 1px solid var(--line);
  transition: box-shadow 0.6s;
}

.bolt svg {
  width: 2.1em;
  fill: var(--dim);
  transition: fill 0.3s;
}

.phone[data-state="off"] .bolt::after {
  content: "";
  position: absolute;
  top: 0.55em;
  right: 0.55em;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0.2em var(--cloud);
}

.phone[data-state="connecting"] .bolt svg {
  fill: var(--volt);
  animation: charge 0.6s ease-in-out infinite;
}

.phone[data-state="protected"] .bolt {
  box-shadow: 0 0 2.6em rgba(255, 216, 77, 0.45);
}

.phone[data-state="protected"] .bolt svg {
  fill: var(--volt);
}

@keyframes charge {
  50% {
    opacity: 0.3;
  }
}

.state-title {
  font-size: 1.4em;
  font-weight: 700;
}

.state-note {
  min-height: 2.6em;
  color: var(--mist);
  font-size: 0.9em;
}

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin-top: 0.2em;
  padding: 0.2em;
  border: 0;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.24);
}

.modes label {
  position: relative;
  cursor: pointer;
}

.modes input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.modes span {
  display: block;
  padding: 0.55em 0;
  border-radius: 999px;
  color: var(--mist);
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.modes input:checked + span {
  background: rgba(255, 255, 255, 0.13);
  color: var(--frost);
}

.phone:not([data-state="off"]) .modes input:checked + span {
  color: var(--volt);
}

.modes input:focus-visible + span {
  outline: 2px solid var(--volt);
  outline-offset: 1px;
}

.mode-note {
  min-height: 2.6em;
  color: var(--mist);
  font-size: 0.82em;
}

.exit,
.ip {
  width: 100%;
  border-radius: 1.1em;
  background: var(--cloud);
  text-align: left;
}

.exit {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.75em 0.85em;
}

.flag {
  flex: none;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: linear-gradient(#ae1c28 0 33.4%, #fff 33.4% 66.6%, #21468b 66.6%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.exit > div {
  flex: 1;
}

.exit-city {
  font-weight: 700;
}

.exit-country {
  color: var(--mist);
  font-size: 0.82em;
}

.exit-badge {
  padding: 0.25em 0.65em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mist);
  font-size: 0.78em;
  font-weight: 700;
}

.phone[data-state="protected"] .exit-badge {
  background: var(--volt-soft);
  color: var(--volt);
}

.ip {
  padding: 0.65em 0.85em;
}

.ip-label {
  color: var(--mist);
  font-size: 0.78em;
}

.ip-value {
  font-size: 1.1em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.guard-rows {
  width: 100%;
  border-radius: 1.1em;
  background: var(--cloud);
  text-align: left;
}

.guard-rows p {
  display: flex;
  justify-content: space-between;
  padding: 0.6em 0.85em;
}

.guard-rows p + p {
  border-top: 1px solid var(--line);
}

.guard-rows .ok {
  font-size: 0.85em;
}

.phone:not([data-state="protected"]) [data-dns] {
  color: var(--mist);
}

.phone:not([data-state="protected"]) [data-dns]::before {
  content: none;
}

.address {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: auto;
  padding: 0.8em 1.1em;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--mist);
}

.mini-bolt {
  display: inline-grid;
  flex: none;
  width: 1.1em;
}

.mini-bolt svg {
  fill: var(--dim);
  transition: fill 0.3s;
}

.phone[data-state="protected"] .mini-bolt svg,
.mini-bolt.on svg {
  fill: var(--volt);
}

/* Section art */

.art {
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
}

.sphere {
  max-width: 30rem;
  justify-self: center;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 72%);
}

.banner {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 80%, transparent);
  mask-composite: intersect;
}

.tablet {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 80%, transparent);
  mask-composite: intersect;
}

/* Aegis */

.aegis {
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(7, 8, 11, 0.35) 45%, rgba(7, 8, 11, 0.9) 100%),
    url("/img/earth.webp") 50% 100% / min(1400px, 160%) auto no-repeat,
    var(--night);
}

.route {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: start;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  list-style: none;
}

.hop {
  position: relative;
  max-width: 13rem;
  padding-top: 1.6rem;
}

.hop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--frost);
}

.hop:nth-child(3)::before {
  background: var(--volt);
  box-shadow: 0 0 1.2rem rgba(255, 216, 77, 0.6);
}

.hop:last-child::before {
  background: var(--mist);
}

.hop-name {
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hop-note {
  margin-top: 0.3rem;
  color: var(--mist);
  font-size: 1rem;
}

.link {
  position: relative;
  height: 2px;
  margin-top: 0.38rem;
  background: rgba(255, 255, 255, 0.22);
}

.link.encrypted {
  background: linear-gradient(90deg, var(--frost), var(--volt));
}

.link span {
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  transform: translateX(-50%);
  color: var(--volt);
  font-size: 0.85rem;
  font-weight: 600;
}

.modes-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.modes-list > div {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.modes-list dt {
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.3rem;
}

.modes-list dd {
  margin-top: 0.4rem;
  color: var(--mist);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.25rem;
  color: var(--mist);
}

.facts strong {
  color: var(--frost);
}

/* Leak Guard */

.rows {
  list-style: none;
  border-radius: var(--r-card);
  background: var(--deep);
  border: 1px solid var(--line);
}

.rows li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
}

.rows li + li {
  border-top: 1px solid var(--line);
}

.row-title {
  font-weight: 700;
}

.row-note {
  margin-top: 0.2rem;
  color: var(--mist);
  font-size: 1rem;
}

.ok {
  flex: none;
  color: var(--volt);
  font-size: 0.95rem;
  font-weight: 700;
}

.ok::before {
  content: "\2713\00a0";
}

/* Trackers */

.tracker-card {
  padding: 1.75rem;
  border-radius: var(--r-card);
  background: var(--deep);
  border: 1px solid var(--line);
}

.count {
  color: var(--mist);
}

.count span {
  display: block;
  color: var(--frost);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 4rem;
  margin-top: 1.5rem;
}

.bars i {
  flex: 1;
  border-radius: 4px 4px 1px 1px;
  background: rgba(255, 216, 77, 0.75);
}

.bars i:nth-child(1) { height: 35%; }
.bars i:nth-child(2) { height: 50%; }
.bars i:nth-child(3) { height: 42%; }
.bars i:nth-child(4) { height: 66%; }
.bars i:nth-child(5) { height: 58%; }
.bars i:nth-child(6) { height: 80%; }
.bars i:nth-child(7) { height: 72%; }
.bars i:nth-child(8) { height: 100%; background: var(--volt); }

.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  margin-top: 1.75rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

/* Realms */

.tabs {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--r-card);
  background: var(--deep);
  border: 1px solid var(--line);
}

.realm-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  color: var(--mist);
  font-size: 0.9rem;
  font-weight: 600;
}

.realm-name::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--volt);
}

.work .realm-name::before {
  background: var(--ion);
}

.ghost .realm-name::before {
  background: var(--nyx);
}

.tab {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  line-height: 1.3;
}

.tab small {
  display: block;
  color: var(--mist);
  font-size: 0.8rem;
}

.site-letter {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9px;
  background: var(--slate);
  font-weight: 700;
}

.personal .tab:first-of-type {
  background: rgba(255, 255, 255, 0.05);
}

.work .site-letter {
  color: var(--ion);
}

.ghost {
  padding: 0.75rem;
  border-radius: var(--r-tile);
  background:
    linear-gradient(90deg, rgba(23, 13, 51, 0.92), rgba(23, 13, 51, 0.55)),
    url("/img/fog.webp") center / cover no-repeat;
}

.ghost .site-letter {
  background: rgba(157, 123, 255, 0.18);
  color: var(--nyx);
}

/* Thunderstrike */

.strike {
  position: relative;
  min-height: min(40rem, 90svh);
  display: grid;
  align-items: end;
  background:
    linear-gradient(0deg, var(--night) 0%, rgba(7, 8, 11, 0) 30%),
    linear-gradient(180deg, var(--night) 0%, rgba(7, 8, 11, 0) 20%),
    url("/img/strike.webp") right center / cover no-repeat,
    var(--night);
  overflow: hidden;
}

.strike::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(255, 244, 200, 0.9), rgba(255, 216, 77, 0.3) 35%, rgba(7, 8, 11, 0) 70%);
  opacity: 0;
  pointer-events: none;
}

.strike.struck::after {
  animation: flash 0.7s ease-out;
}

@keyframes flash {
  10% {
    opacity: 1;
  }
}

.strike > .wrap {
  width: 100%;
}

.strike-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

.strike-button {
  background: rgba(20, 22, 30, 0.85);
  color: var(--frost);
  border: 1px solid rgba(255, 216, 77, 0.55);
}

.strike-button:hover {
  border-color: var(--volt);
}

.strike-result {
  color: var(--frost);
}

/* Devices and contact */

.devices {
  border-top: 1px solid var(--line);
}

.contact .button {
  margin-top: 2.25rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.9rem;
}

/* Narrow windows */

@media (max-width: 60rem) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 6.5rem;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split.reverse > :first-child {
    order: 0;
  }

  .route {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hop {
    max-width: none;
    padding: 0 0 0 1.9rem;
  }

  .hop::before {
    top: 0.35rem;
  }

  .link {
    width: 2px;
    height: 3rem;
    margin: 0.5rem 0 0.5rem 0.38rem;
  }

  .link.encrypted {
    background: linear-gradient(180deg, var(--frost), var(--volt));
  }

  .link span {
    left: 1.5rem;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .modes-list,
  .facts {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 38rem) {
  .top:not(.legal-top) nav a:not(:last-child) {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 404 */

.missing {
  display: grid;
  align-items: center;
  min-height: 100svh;
}

.missing-action {
  margin-top: 2.25rem;
}

/* Privacy Policy and Terms of Use */

.legal-top {
  position: static;
}

.legal {
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) var(--section);
}

.legal-head {
  max-width: 46rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.legal h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
}

.legal-date {
  margin-top: 1rem;
  color: var(--mist);
  font-size: 0.95rem;
}

.legal-intro {
  margin-top: 1.5rem;
  color: #c7ccd6;
  font-size: 1.25rem;
  line-height: 1.65;
}

.legal-body {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.legal-toc {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
}

.legal-toc h2 {
  color: var(--mist);
  font-size: 0.9rem;
  font-stretch: 100%;
  font-weight: 600;
  letter-spacing: 0;
}

.legal-toc ol {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.85rem;
  list-style: none;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
}

.legal-toc a {
  display: flex;
  gap: 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  color: #c7ccd6;
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
}

.legal-toc a::before {
  content: counter(toc);
  min-width: 1.2rem;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.legal-text {
  max-width: 42rem;
  counter-reset: section;
}

.legal-text section {
  counter-increment: section;
  padding-block: clamp(1.75rem, 3vw, 2.25rem);
  scroll-margin-top: 1.5rem;
}

.legal-text section + section {
  border-top: 1px solid var(--line);
}

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

.legal-text h2 {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.15;
}

.legal-text h2::before {
  content: counter(section);
  color: var(--volt);
  font-size: 0.75em;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
}

.legal-text p,
.legal-text li {
  color: #c7ccd6;
  line-height: 1.75;
}

.legal-text p + p,
.legal-text ul + p,
.legal-text p + ul {
  margin-top: 1.1rem;
}

.legal-text ul {
  display: grid;
  gap: 0.9rem;
  list-style: none;
}

.legal-text li {
  position: relative;
  padding-left: 1.4rem;
}

.legal-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--volt);
}

.legal a {
  color: var(--volt);
  text-underline-offset: 0.18em;
}

/* After .legal a: the contents stay grey, links in the text are gold. */
.legal-toc a,
.legal-toc a:visited {
  color: #c7ccd6;
}

.legal-toc a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--frost);
}

.legal-toc a:focus-visible {
  outline-offset: -3px;
}

@media (max-width: 60rem) {
  .legal-body {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    max-height: none;
    padding: 1.25rem 1rem;
    border-radius: var(--r-card);
    background: var(--deep);
    border: 1px solid var(--line);
  }
}

.foot a {
  color: var(--mist);
}

.top nav a[aria-current="page"] {
  color: var(--frost);
}
