/* LEGAL.

   Privacy, Terms, Data deletion and Government requests, in the same room as
   the rest of the site: the same palette, nav, menu and footer as About and
   the Founding Circle (the shell below is About's, line for line), with one
   reading column for long text.

   FONTS ARE HELD. Until Louis rules on PP Mori, each legal page keeps the
   face it had before this stylesheet: it sets --sans (and --legal-head where
   its headings had their own face) in a one-line <style> of its own. Taking
   those lines out, and the Google Fonts links beside them, is the whole of
   the font change once he rules. */

@font-face {
  font-family: "PP Mori";
  src: url("../fonts/PPMori-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* surfaces */
  --page: #101010;
  --card: #141a23;
  --rule: #202936;
  --deep: #171e28;
  --edge: #2a3442;
  --sq: #2f3a48;
  --slot: #11161d;
  --sq: #2f3a48;

  /* state */
  --hot: #e8a33d;
  --gold: #e8b44f;
  --gold-lit: #f0c468;
  --wait: #8fb4e0;
  --brand: #4a90e2;

  /* the trace's own two series, so a legend swatch and the shader agree */
  --sig: #5f6b7d;
  --quiet: #394452;
  --faint: #313c4b;

  /* ink */
  --ink: #ffffff;
  --ink-2: #c9cfd4;
  --ink-3: #a2aab1;
  --ink-4: #8a93a0;
  --ink-5: #737d88;
  --ink-6: #5f6874;
  --ink-7: #4a535f;

  --sans: "PP Mori", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --h1: clamp(30px, 3.3vw, 52px);
  --h2: clamp(26px, 2.55vw, 44px);
  --sub: clamp(15px, 1.15vw, 20px);
  --body: clamp(14px, 1vw, 17px);
  --cap: clamp(11px, .85vw, 15px);

  --gap: clamp(88px, 9vw, 200px);
  --gut: clamp(20px, 4.2vw, 72px);
  --nav-h: 80px;
  --pane-r: clamp(18px, 1.6vw, 24px);
  --pane-p: clamp(20px, 2.6vw, 44px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

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

b {
  font-weight: 400;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.wrap {
  width: 100%;
  max-width: calc(1584px + var(--gut) * 2);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.mono {
  font-family: var(--mono);
  letter-spacing: .12em;
}

.dim {
  color: var(--ink-6);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 4px;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

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

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sig);
  flex: none;
}

.dot--wait {
  background: var(--wait);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1;
  padding: 12px 20px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  background: none;
  color: var(--ink-3);
  transition: background-color .22s ease, color .22s ease;
}

.btn--brand {
  background: #478fc6;
  color: #fff;
}

.btn--brand:hover {
  background: #5a9fd6;
}

.btn--big {
  padding: 16px 28px;
  font-size: clamp(15px, 1.15vw, 18px);
}

/* ---- nav ------------------------------------------------------------ */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 26px 0 38px;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(16, 16, 16, .97) 0%, rgba(16, 16, 16, .96) 40%, rgba(16, 16, 16, .78) 60%,
      rgba(16, 16, 16, .44) 76%, rgba(16, 16, 16, .16) 89%, rgba(16, 16, 16, 0) 100%);
}

.nav a {
  pointer-events: auto;
}

.nav__mark,
.nav__sign,
.nav__links a {
  text-shadow: 0 1px 8px rgba(16, 16, 16, .8);
}

.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__mark {
  font-size: clamp(19px, 1.5vw, 26px);
  color: var(--ink);
  letter-spacing: .02em;
}

.nav__links {
  display: flex;
  gap: clamp(20px, 2.4vw, 38px);
  font-size: 15px;
  color: var(--ink-3);
}

.nav__links a:hover,
.nav__links a[aria-current] {
  color: var(--ink);
}

.nav__cta {
  padding: 10px 22px;
  border-radius: 4px;
}

/* The way back in, beside the way in. Deliberately not an outlined twin of the
   filled button: someone who already has an account needs a door, not a second
   offer, so it carries the nav's own weight and lets Apply keep all the colour. */
.nav__act {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
}

.nav__sign {
  font-size: 15px;
  color: var(--ink-3);
  transition: color .22s ease;
}

.nav__sign:hover {
  color: var(--ink);
}

@media (max-width: 899px) {
  .nav {
    padding: 18px 0 30px;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    padding: 8px 16px;
    font-size: 14px;
  }

  .nav__sign {
    font-size: 14px;
  }
}
/* ---- the way through, in the hand ------------------------------------

   Below 1024 the six links stand down and this takes their place. It is a
   native <details>, so it works with no JavaScript at all; nav.js only adds
   what a disclosure cannot do for itself (Escape, close-on-choose, a lock
   on the page behind it).

   The trigger is deliberately not three equal lines turning into a cross.
   It is the site's own index: six marks for six sections, with the one you
   are on carried at full length in brand. Opening extends every mark to
   that same length, and those marks are the same object that rules each row
   of the panel, so the control reads as a compressed form of what it opens.
   Every bar keeps its rounded caps in both states and travels its whole
   track, so nothing flips or stops half way.
   --------------------------------------------------------------------- */

.mnu {
  /* the component's own palette and measure, so every rule below is identical
     wherever this ships and only this header changes with the page's system */
  --mnu-surface: var(--card);
  --mnu-mark: var(--ink-4);
  --mnu-here: var(--brand);
  --mnu-link: var(--ink-2);
  --mnu-lit: var(--ink);
  --mnu-word: var(--ink-3);
  --mnu-gut: var(--gut);
  --mnu-bleed: 0px;
  --mnu-ring: var(--wait);
  --mnu-shade: rgba(16, 16, 16, .8);

  display: none;
  position: static;
  pointer-events: auto;
}

/* the bar is inert by default; the control and its panel have to opt back in */
.mnu__t,
.mnu__p {
  pointer-events: auto;
}

/* The summary keeps its own display: WebKit hangs the disclosure role off
   list-item, and changing it there can cost the control its semantics. The
   marker goes without touching display, and an inner span does the layout. */
.mnu__t {
  position: relative;
  /* the summary stays a list-item for its role, so its line box would otherwise
     add leading around the control and push the mark off centre */
  line-height: 0;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

/* The target is 44px without the bar being 44px tall. The control's own box
   stays the height of its mark and the hit area is cast around it, so adding
   the menu never pushed the header down over the hero behind it. */
.mnu__t::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  min-width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.mnu__tin {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  gap: 10px;
  line-height: 1;
  padding-left: 2px;
}

.mnu__t::-webkit-details-marker {
  display: none;
}

.mnu__t::marker {
  content: "";
}

/* a fixed 18px slot per mark, so a short bar and a full one start on the
   same axis and the row beside them never shifts */
.mnu__i {
  filter: drop-shadow(0 1px 6px var(--mnu-shade));
  display: grid;
  gap: 2px;
  width: 18px;
  flex: none;
}

.mnu__b {
  width: 11px;
  height: 2px;
  border-radius: 1px;
  background: var(--mnu-mark);
  justify-self: start;
  transition: width .26s cubic-bezier(.33, .9, .3, 1), background-color .22s ease;
}

.mnu__b--here {
  width: 18px;
  background: var(--mnu-here);
}

/* only the trigger's own marks extend; the panel's rows keep encoding where
   you are, which is the whole point of them */
.mnu[open] .mnu__i .mnu__b {
  width: 18px;
}

.mnu__w {
  text-shadow: 0 1px 6px var(--mnu-shade);
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--mnu-word);
  transition: color .22s ease;
}

/* Focus and press answer everywhere. Hover is gated behind a device that has
   one, because on a touch screen it latches: tap the control and it stays lit
   until you tap something else. */
.mnu__t:focus-visible .mnu__w,
.mnu__t:active .mnu__w {
  color: var(--mnu-lit);
}

@media (hover: hover) {
  .mnu__t:hover .mnu__w {
    color: var(--mnu-lit);
  }
}

/* one word is in the accessible name at a time, never both */
.mnu[open] .mnu__w--shut,
.mnu:not([open]) .mnu__w--open {
  display: none;
}

/* ---- the panel ---- */

/* A sheet, not a section: it is lifted a step off the page rather than drawn
   with a line, and the bar lifts with it so the two read as one object. A fade
   was tried here first and was wrong, because as soon as the sheet has to
   scroll the fade lands on a live row and the page ghosts through it. */
.mnu__p {
  position: absolute;
  left: calc(-1 * var(--mnu-bleed));
  right: calc(-1 * var(--mnu-bleed));
  top: calc(100% + 16px);
  padding: 6px var(--mnu-gut) 26px;
  background: var(--mnu-surface);
  max-height: calc(100vh - 148px);
  max-height: calc(100dvh - 148px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mnu__l {
  display: grid;
}

.mnu__l a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 56px;
  font-size: 19px;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--mnu-link);
  transition: color .2s ease;
}

.mnu__l a:focus-visible,
.mnu__l a:active {
  color: var(--mnu-lit);
}

@media (hover: hover) {
  .mnu__l a:hover {
    color: var(--mnu-lit);
  }
}

/* Where you are is carried by the type and its own mark, never by a dot tacked
   underneath. Reading it off aria-current means the markup states it once. */
.mnu__l a[aria-current] {
  color: var(--mnu-lit);
}

.mnu__l a[aria-current] .mnu__b {
  width: 18px;
  background: var(--mnu-here);
}

/* an account action, not a seventh section, so it carries no section mark and
   sits off the run of six on its own air */
.mnu__f {
  margin-top: 26px;
}

.mnu__f a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
  color: var(--mnu-word);
  transition: color .2s ease;
}

.mnu__f a:focus-visible,
.mnu__f a:active {
  color: var(--mnu-lit);
}

@media (hover: hover) {
  .mnu__f a:hover {
    color: var(--mnu-lit);
  }
}

/* The six section pages carry a site-wide focus ring; the home page carries
   none, so the component brings its own rather than leaving a new keyboard
   control relying on the browser default over a dark hero. */
.mnu__t:focus-visible,
.mnu__l a:focus-visible,
.mnu__f a:focus-visible {
  outline: 2px solid var(--mnu-ring);
  outline-offset: 3px;
}

/* The entrance moves the sheet only. Opacity stays at 1 the whole way, so a
   transition that never runs still leaves every link fully readable. */
@media (prefers-reduced-motion: no-preference) {
  .mnu__p {
    transition: transform .24s cubic-bezier(.33, .9, .3, 1);
  }

  @starting-style {
    .mnu[open] .mnu__p {
      transform: translateY(-8px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {

  .mnu__b,
  .mnu__w,
  .mnu__l a,
  .mnu__f a {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .nav__in {
    position: relative;
  }

  .nav__links {
    display: none;
  }

  /* the way back in moves into the panel; the bar keeps only the way in */
  .nav__sign {
    display: none;
  }

  .mnu {
    display: block;
  }

  /* Open, the scrim has nothing left to fade into, so it takes the sheet's own
     surface and the two become one object with a single edge at the bottom.
     An opaque sheet must also stop passing clicks through to the page under it.
     The class is set by nav.js; :has covers the no-JavaScript path. */
  .nav.is-menu,
  .nav:has(.mnu[open]) {
    background: var(--card);
    pointer-events: auto;
  }

  /* the page behind an open sheet should not travel under it */
  html.is-locked,
  html.is-locked body {
    overflow: hidden;
  }
}

/* Measured, not guessed: the bar needs 377px to hold the wordmark, Apply and a
   worded control on one line, and 329px without the word. Below that the
   wordmark is what breaks, so the word gives up its pixels and keeps its place
   in the accessible name. The hit area is unaffected: it is cast, not measured. */
@media (max-width: 379px) {
  .mnu__w {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }
}

/* On paper the control is dead and the sheet is not the page, so neither prints. */
@media print {
  .mnu {
    display: none;
  }
}



/* ---- section rhythm -------------------------------------------------- */

.sec {
  padding-top: var(--gap);
}

.hero {
  padding-top: calc(var(--nav-h) + clamp(28px, 4vw, 86px));
}

.head {
  max-width: 760px;
}

.head--mid {
  margin-inline: auto;
  text-align: center;
}

.head h2 {
  font-size: var(--h2);
  line-height: 1.26;
  letter-spacing: -.03em;
  color: var(--ink);
  font-weight: 400;
}

.head .kicker+h2 {
  margin-top: 16px;
}

.head .sub {
  font-size: var(--sub);
  line-height: 1.6;
  color: var(--ink-3);
  margin-top: 16px;
}

.kicker {
  font-size: var(--cap);
}

.cta__go {
  margin-top: 32px;
}

.note {
  font-size: var(--sub);
  line-height: 1.6;
  color: var(--ink-5);
  margin-top: clamp(28px, 3vw, 48px);
}

.note--mid {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

/* The panel: a surface a shade off the page, edged in its own colour. */
.pane {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--pane-r);
  padding: var(--pane-p);
}

/* ---- footer ---------------------------------------------------------- */

.foot {
  margin-top: var(--gap);
  padding-bottom: clamp(32px, 3vw, 56px);
}

.foot__top {
  display: grid;
  gap: clamp(28px, 3vw, 56px);
  padding-top: clamp(28px, 3vw, 48px);
  border-top: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .foot__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

.foot__mark {
  font-size: clamp(24px, 2.2vw, 34px);
  color: var(--ink);
  letter-spacing: .02em;
}

.foot__say {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
  color: var(--ink-5);
  margin-top: 12px;
  max-width: 420px;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 64px);
}

.foot__cols div {
  display: grid;
  gap: 11px;
  align-content: start;
}

.foot__cap {
  font-size: 9px;
  color: var(--ink-6);
}

.foot__cols a {
  font-size: clamp(13px, 1.05vw, 16px);
  color: var(--ink-3);
}

.foot__cols a:hover {
  color: var(--ink);
}

.foot__base {
  display: grid;
  gap: 12px;
  margin-top: clamp(24px, 2.6vw, 40px);
  padding-top: clamp(16px, 1.8vw, 26px);
  border-top: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .foot__base {
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
  }
}

.foot__legal {
  display: flex;
  gap: 20px;
}

.foot__legal a,
.foot__c {
  font-size: clamp(13px, 1vw, 14px);
  color: var(--ink-5);
}

.foot__legal a:hover {
  color: var(--ink-2);
}

.foot__c {
  color: var(--ink-6);
}




/* ---- the reading column ---------------------------------------------- */

:root {
  --legal-head: var(--sans);
  --measure: 72ch;
}

.legal {
  padding-top: calc(var(--nav-h) + clamp(28px, 4vw, 72px));
}

.legal__col {
  max-width: var(--measure);
}

.legal .kicker,
.legal .eyebrow {
  font-family: var(--legal-kicker, var(--mono));
  font-size: var(--cap);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.legal h1 {
  font-family: var(--legal-head);
  font-size: var(--h1);
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--ink);
  font-weight: 400;
  text-wrap: balance;
}

.legal .meta,
.legal .updated {
  font-size: 13px;
  color: var(--ink-5);
  margin-top: 14px;
}

.legal__head {
  padding-bottom: clamp(24px, 2.4vw, 36px);
  margin-bottom: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--rule);
}

.legal .lede {
  font-size: var(--sub);
  line-height: 1.6;
  color: var(--ink-3);
  margin-top: 18px;
}

.legal h2 {
  font-family: var(--legal-head);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--ink);
  font-weight: 400;
  margin: clamp(40px, 3.4vw, 56px) 0 14px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.legal h3 {
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
  margin: 28px 0 10px;
}

.legal p,
.legal ul,
.legal ol {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.legal p.sub {
  color: var(--ink-3);
}

.legal__col ul:not(.plain) {
  list-style: disc;
  padding-left: 22px;
}

.legal__col ul ul {
  margin: 10px 0 4px;
}

.legal li {
  margin-bottom: 8px;
}

.legal li::marker {
  color: var(--ink-6);
}

.legal strong,
.legal b {
  color: var(--ink);
  font-weight: 400;
}

.legal__col a {
  color: var(--gold);
  border-bottom: 1px solid rgba(232, 180, 79, .32);
  transition: border-color .2s ease;
}

.legal__col a:hover {
  border-bottom-color: var(--gold);
}

.legal ul.plain {
  list-style: disc;
  padding-left: 22px;
  color: var(--ink-3);
}

.legal ol.steps {
  counter-reset: step;
}

.legal ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
  color: var(--ink-3);
}

.legal ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(232, 180, 79, .45);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal .callout {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--brand);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.legal .callout p {
  margin: 0;
  color: var(--ink-3);
}

.legal .mail {
  font-family: var(--legal-head);
  font-size: var(--sub);
}

.legal bdi {
  color: var(--ink-3);
}

/* Carried from About (Vishal, 21-10): headings break into lines of even
   length, running text avoids a lone last word, and on a phone the page
   headline steps down to the site's one type scale. */
h1,
h2,
h3 {
  text-wrap: balance
}

p,
li {
  text-wrap: pretty
}

@media (max-width: 759px) {
  .legal h1 {
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: -.022em;
  }
}

/* The company line and the way to reach it, in the footer's own words: the
   links sit in the sentence, so they are underlined to read as links. */
.foot__say a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.foot__say a:hover,
.foot__say a:focus-visible {
  color: var(--ink);
}

/* the footer's small captions and copyright line at a readable contrast
   (ink-6 measured 3.4 to 1 on the page; ink-4 clears 4.5) */
.foot__cap,
.foot__c {
  color: var(--ink-4);
}
