/* ==========================================================================
 * Clearmarks — the document pages (privacy, terms, data deletion, 404).
 *
 * These carried their own palette and their own type: a white ground, a blue
 * accent and the system sans, against the homepage's paper-grey, green and
 * Archivo. Clicking "Privacy" from the homepage landed you on what looked like
 * a different company's site — which is a poor thing to do to somebody who is
 * reading the privacy policy specifically because they are deciding whether to
 * trust you. One stylesheet, the product's own tokens, shared by all four.
 *
 * Kept as a file rather than four inline blocks so the next change is made once.
 * ====================================================================== */

:root {
  /* The same instrument palette as the homepage. A dark front page opening onto
     a white policy page is the split this stylesheet was written to close, so
     these follow it rather than keeping a daylight scheme of their own. */
  --ground:  #080A07;
  --surface: #0F120D;
  --raised:  #161A13;
  --rule:    #232820;
  --rule-hi: #333A2E;
  --ink:     #E9EDE3;
  /* Lifted from the homepage's --dim: this is long legal prose, not a caption,
     and it is read by somebody deciding whether to trust us. */
  --muted:   #A7AF9F;
  --faint:   #7E8679;
  --ok:      #6BB395;

  --gutter: clamp(1.15rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ok); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--ok); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: .5rem;
  background: var(--ink); color: var(--ground);
  padding: .6rem 1rem; border-radius: 6px; z-index: 100; text-decoration: none;
}
.skip:focus { left: var(--gutter); }

/* --------------------------------------------------------- site chrome --- */

.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top-in {
  max-width: 74rem; margin: 0 auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 4.25rem;
}
.brand {
  font-weight: 700; letter-spacing: -.025em; font-size: 1.08rem;
  text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: .6rem;
}
.brand .dot {
  width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--ok); flex: none;
}
.top nav { display: flex; align-items: center; gap: 1.6rem; }
.top nav a { font-size: .92rem; color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 40rem) { .top nav .hide-sm { display: none; } }

/* ---------------------------------------------------------- the document - */

.wrap {
  max-width: 46rem; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 4rem;
}

main header { border-bottom: 1px solid var(--rule); padding-bottom: 1.75rem; margin-bottom: 2.5rem; }
/* The old markup repeats the wordmark inside the document header; the sticky
   bar above already carries it, so it is hidden rather than deleted from four
   files. Scoped under main — unscoped, it matched the sticky bar's own brand
   and took the wordmark off the top of every page. */
main header .brand { display: none; }

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.06; letter-spacing: -.032em; font-weight: 600;
  margin: 0 0 .6rem; text-wrap: balance;
}
h2 {
  font-size: 1.28rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 600;
  margin: 3rem 0 .75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
}
h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; margin: 1.9rem 0 .45rem; }

p, li { color: var(--ink); }
p { margin: 1.05rem 0; }

.lede { font-size: 1.1rem; line-height: 1.55; color: var(--muted); }
.meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .78rem; letter-spacing: .04em; color: var(--faint);
}
header .meta { margin: 0; }

ul { padding-left: 1.2rem; margin: 1.05rem 0; }
li { margin: .45rem 0; }
strong { font-weight: 600; }

.box {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--ok);
  border-radius: 8px;
  padding: 1.15rem 1.35rem;
  margin: 1.9rem 0;
}

table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .92rem; }
th, td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500; color: var(--faint); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase;
  border-bottom-color: var(--rule-hi);
}
/* A table wider than the phone must scroll inside its own box, never take the
   page with it. */
.scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- foot --- */

footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding-block: 2.5rem 3rem;
}
.foot-in {
  max-width: 74rem; margin: 0 auto; padding-inline: var(--gutter);
  display: flex; flex-wrap: wrap; gap: .75rem 1.75rem;
  align-items: baseline; justify-content: space-between;
  font-size: .87rem; color: var(--faint);
}
.foot-in nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot-in a { color: var(--muted); text-decoration: none; }
.foot-in a:hover { color: var(--ink); text-decoration: underline; }

/* ----------------------------------------------------------------- 404 --- */

/*
 * A link that is a paragraph on its own is a target, not prose, and 17px is not
 * a thing to ask a thumb to hit. Inline links inside a sentence are deliberately
 * left alone: WCAG 2.5.8 exempts them, and padding one breaks its line box.
 */
a.tap { display: inline-block; padding-block: .3rem; min-height: 24px; }

.mid { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.mid h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .5rem; }
.mid p { color: var(--muted); }
