/* The Terms, Privacy and Refund pages: the same "Night chart" look as the home page (site.css), written out here so
   the long legal text loads only this one file. The tokens, the header, the buttons and the footer are copies of
   site.css's: change them together. Fonts, stored next to the page, both SIL Open Font License:
   Hedvig Letters Serif for the headlines (fonts/OFL-HedvigLettersSerif.txt),
   Hanken Grotesk for everything else (fonts/OFL-HankenGrotesk.txt). */
@font-face {
  font-family: 'Hedvig Letters Serif';
  src: url('fonts/hedvig-letters-serif.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/hanken-grotesk.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #070b14;     /* the page */
  --night-2: #0b1221;   /* raised: the short version */
  --night-3: #111a2d;   /* hover, inputs */
  --line: rgba(150, 172, 214, .14);
  --line-2: rgba(150, 172, 214, .24);
  --text: #ede7dc;      /* lamp-lit paper: headlines, strong words */
  --body: #d9d4c9;      /* the long text, a shade calmer than the headlines (13.3:1 on the page) */
  --text-2: #a9b2c3;
  --text-3: #8a94a8;
  --amber: #f2a65a;     /* sodium light: now, the main button */
  --amber-hi: #ffc98e;
  --amber-ink: #1a1006;
  --serif: 'Hedvig Letters Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1240px;
  --top-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 17px/1.6 var(--sans); font-feature-settings: 'kern';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--amber-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons (the header's "Start free trial") ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, box-shadow .25s, border-color .2s, color .2s, transform .2s;
}
.btn-quiet { color: var(--text); border-color: var(--line-2); background: rgba(10, 16, 30, .35); }
.btn-quiet:hover { border-color: rgba(242, 166, 90, .55); background: rgba(242, 166, 90, .07); }
.btn:active { transform: translateY(1px); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; min-height: var(--top-h);
  background: rgba(7, 11, 20, .86); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.top > .wrap { min-height: var(--top-h); display: flex; align-items: center; gap: 28px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); text-decoration: none; border-radius: 8px; }
.brand .wordmark { display: block; width: auto; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 8px 12px; border-radius: 999px; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 7px; }
.nav .nav-cta { display: none; }
.top .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .nav a { padding: 8px 9px; }
  .top > .wrap { gap: 16px; }
}
@media (max-width: 860px) {
  :root { --top-h: 62px; }
  body { font-size: 16px; }
  .top > .wrap { gap: 12px; }
  .nav {
    display: none; position: absolute; left: 12px; right: 12px; top: calc(var(--top-h) + 2px); flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    background: #0a101e; box-shadow: 0 24px 60px -10px rgba(0, 0, 0, .8); border: 1px solid var(--line-2); border-radius: 16px; margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .top .top-cta { margin-left: auto; min-height: 38px; padding: 0 14px; font-size: 14.5px; }
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 600 14.5px/1 var(--sans); cursor: pointer;
  }
  .brand .wordmark { height: 26px; }
}
@media (max-width: 460px) {
  .top .top-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .nav .nav-cta { display: block; color: var(--amber-ink); background: var(--amber); text-align: center; margin-top: 6px; font-weight: 600; }
}

/* ---------- the document ---------- */
/* One column about 70 characters wide, 18px text with generous line spacing; the headings are Hedvig Letters Serif. */
.doc {
  max-width: 44em; margin: 0 auto; font-size: 18px; line-height: 1.72; color: var(--body);
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(72px, 9vw, 128px);
}
.doc h1 {
  margin: 8px 0 18px; font: 400 clamp(42px, 6.4vw, 72px)/1.03 var(--serif); letter-spacing: -.005em;
  color: var(--text); text-wrap: balance;
}
.eyebrow { margin: 0; font-size: 16px; line-height: 1.4; color: var(--text-2); }
.updated { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.doc h2 {
  position: relative; margin: clamp(48px, 6vw, 68px) 0 16px; padding-top: 26px; border-top: 1px solid var(--line-2);
  font: 400 clamp(27px, 3.2vw, 36px)/1.14 var(--serif); color: var(--text); text-wrap: balance;
}
.doc h2::before { /* a short piece of the amber replay line on every rule */
  content: ''; position: absolute; left: 0; top: -1px; width: 44px; height: 2px; background: var(--amber);
}
.doc h3 { margin: 28px 0 6px; font: 400 22px/1.25 var(--serif); color: var(--text); }
.doc p { margin: 0 0 1em; }
.doc ul { margin: 0 0 1.1em; padding-left: 1.3em; }
.doc li { margin-bottom: .5em; padding-left: .2em; }
.doc li::marker { color: var(--amber); }
.doc li > ul { margin-top: .5em; }
.doc b, .doc strong { color: var(--text); font-weight: 600; }
.doc a:focus-visible { border-radius: 3px; }
.doc code { font: inherit; font-size: .92em; background: var(--night-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; color: var(--text); }
.doc .muted { color: var(--text-2); }

/* the short version at the top */
.summary {
  margin: 34px 0 6px; padding: 22px 26px 18px; background: var(--night-2);
  border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 6px;
  font-size: 17px; line-height: 1.65;
}
.summary > p:first-child { margin-bottom: .6em; }
.summary ul { margin-bottom: .5em; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }
.summary.final { font-size: 18px; }
.summary.final p { color: var(--text); }
.summary.final p + p { margin-top: 1em; }

/* "On this page": the section list, in two columns when there is room */
.toc { margin: 36px 0 0; padding: 0; columns: 2 250px; column-gap: 44px; font-size: 16px; line-height: 1.45; }
.toc br { display: none; }
.toc a { display: block; padding: 6px 0; color: var(--text-2); text-decoration: none; break-inside: avoid; }
.toc a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 5px; }

/* ---------- footer (the same as the home page) ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 52px; background: #05080f; color: var(--text-2); font-size: 14.5px; }
.foot-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.foot-brand { display: grid; gap: 14px; justify-items: start; }
.foot-brand .brand .wordmark { height: 28px; }
.foot nav { display: grid; gap: 6px; justify-items: end; align-content: start; } /* two rows: the site, then the legal pages */
.foot nav span { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: flex-end; }
.foot nav a { color: var(--text-2); text-decoration: none; padding: 4px 0; }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }
.foot nav a[aria-current="page"] { text-decoration-color: var(--amber); text-underline-offset: 5px; }
.risk { max-width: 60em; margin-top: 28px; font-size: 13.5px; line-height: 1.55; color: var(--text-3); }
.risk + .risk { margin-top: 12px; }
.risk a { color: var(--text-2); }
@media (max-width: 760px) { .foot-row { grid-template-columns: 1fr; } .foot nav { justify-items: start; } .foot nav span { justify-content: flex-start; } }

@media (max-width: 560px) {
  .doc { font-size: 17px; line-height: 1.7; }
  .summary { padding: 18px 16px 14px; font-size: 16.5px; }
  .summary ul { padding-left: 1.1em; }
  .summary.final { font-size: 17px; }
}

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

/* printed on paper: black on white, only the document */
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; }
  .top, .foot, .toc { display: none; }
  .doc { max-width: none; padding: 0; font-size: 11pt; line-height: 1.5; color: #111; }
  .doc h1, .doc h2, .doc h3, .doc b, .doc strong, .summary.final p { color: #000; }
  .doc h2 { border-top-color: #999; }
  .doc h2::before { background: #000; }
  .doc a { color: #000; }
  .summary { background: none; border-color: #999; border-left-color: #000; }
  .eyebrow, .updated { color: #333; }
}
