/* relay.glass/privacy and /terms, in English and French: the legal documents in the
   landing's look (owner, 2026-11-04: "update the privacy page to the new style", then
   "same for terms"). The tokens, the bar and the foot are /buy's (site/buy/buy.css), so
   the documents read as the same site: paper, ink, Instrument Sans. No amber (DESIGN.md:
   amber is a live microphone) and no red. Nothing a person reads is under 15 px.

   A document is not a run of frames, so it keeps to the one frame a document has: what
   it is in the biggest words, when it took effect, and one line of what it covers. Below
   that, the text at a reading measure, sections apart by space rather than rules, and on
   a desk the sections as a rail beside it that marks where the reader is (legal.js fills
   it; with no script there is no rail and the text reads the same). */

@font-face { font-family: "Instrument Sans"; src: url("/r2v2/sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #F4F2EE; --paper-2: #EBE8E2;
  --ink: #0C0C0D; --ink-2: #57534E; --ink-3: #8A857E;
  --rule: rgba(12, 12, 13, .14);
  --sans: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 5vw, 64px);
  --max: 1480px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar: 64px;
  /* contact.js's Copy button takes the page's surface. */
  --surface: var(--paper-2); --ink-mid: var(--ink-2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-padding-top: calc(var(--bar) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.45; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { overflow-x: clip; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
svg { display: block; }

/* ---- the bar: /buy's, on paper from the start, its hairline once the page moves ---- */
.top { position: sticky; z-index: 30; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: var(--bar); padding: 0 var(--pad); background: rgba(244, 242, 238, .94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow 240ms ease; }
.top.on { box-shadow: 0 1px 0 var(--rule); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-size: 17px; font-weight: 600; letter-spacing: .04em; line-height: 1; text-decoration: none; }
.brand svg { width: 34px; height: 18px; }
.switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(12, 12, 13, .07); }
.switch a { position: relative; padding: .5em 1em; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; color: var(--ink-2); }
/* The pill is drawn 32 px tall; the tap reaches 44. */
.switch a::after { content: ""; position: absolute; inset: -6px 0; }
.switch a:hover { color: var(--ink); }
/* The other document, where /buy keeps its button. */
.aside { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.aside:hover { color: var(--ink); }
/* A phone keeps the mark and the two pages; the other document is in the foot. */
@media (max-width: 560px) {
  .top { grid-template-columns: auto 1fr auto; gap: 8px; }
  .brand span { display: none; }
  .switch { justify-self: center; }
  .switch a { padding: .55em .85em; }
  .aside { display: none; }
}
@media (max-width: 359px) { .switch a { padding: .55em .6em; } }
/* On a desk the bar is a step larger, as /buy's (owner, 2026-11-05: "aggrandi légèrement
   le top nav"); a phone's is unchanged. */
@media (min-width: 761px) {
  :root { --bar: 72px; }
  .brand { font-size: 18px; }
  .brand svg { width: 38px; height: 20px; }
  .switch a { padding: .55em 1.1em; font-size: 16px; }
  .aside { font-size: 16px; }
}

/* ---- the document's one frame: the title in the biggest words, its date, one line ---- */
.legal-head { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 13vh, 150px) var(--pad) clamp(64px, 12vh, 136px); }
.legal-head h1 { max-width: 12em; font-size: clamp(46px, 7.4vw, 120px); font-weight: 600; line-height: .96; letter-spacing: -.05em; text-wrap: balance; }
.legal-head .updated { margin-top: clamp(18px, 2.4vh, 26px); font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
.legal-head .standfirst { max-width: 30em; margin-top: clamp(28px, 4.5vh, 48px); font-size: clamp(20px, 1.9vw, 28px); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; color: var(--ink-2); text-wrap: pretty; }

/* It arrives as the site's pages do: fades in and rises 24 px, 80 ms apart, done by
   580 ms. With no script, or Reduce Motion, it is simply there. */
@media (prefers-reduced-motion: no-preference) {
  .js .legal-head > * { animation: rise 500ms ease-out both; }
  .js .legal-head > :not(:first-child) { animation-delay: 80ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---- the text ---- */
.legal-body { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(96px, 16vh, 200px); }
/* 30.5em is 75 characters at most a line (docs/REDESIGN.md: 50 to 75). */
.doc { max-width: 30.5em; color: var(--ink-2); line-height: 1.6; }
.doc h2 { margin-top: clamp(64px, 10vh, 112px); font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 2em; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.doc p, .doc ul { margin-top: 1em; }
.doc h2 + p, .doc h2 + ul, .doc h3 + p { margin-top: .75em; }
/* A section's own date, under its heading. */
.doc .updated { margin-top: .5em; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
.doc ul { padding-left: 1.15em; }
.doc li { margin-top: .6em; padding-left: .2em; }
.doc li::marker { color: var(--ink-3); }
.doc strong { font-weight: 600; color: var(--ink); }
.doc a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--rule); }
.doc a:hover { text-decoration-color: var(--ink); }
/* A cookie's or a setting's name: the page's own face on a chip, not a code font
   (DESIGN.md: a mono face only behind Advanced). */
.doc code { padding: .08em .4em; border-radius: 6px; background: var(--paper-2); font-family: inherit; font-size: .92em; color: var(--ink); overflow-wrap: anywhere; }

/* ---- on a desk, the sections as a rail beside the text: one tick each, the reader's
   longest and in ink, after /buy's side ruler ---- */
.toc { display: none; }
@media (min-width: 1100px) {
  .legal-body.has-toc { display: grid; grid-template-columns: minmax(200px, 17rem) minmax(0, 1fr); column-gap: clamp(48px, 7vw, 128px); align-items: start; }
  .has-toc .toc { position: sticky; top: calc(var(--bar) + 32px); display: block; max-height: calc(100vh - var(--bar) - 64px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
}
.toc-k { margin-bottom: 14px; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.toc ol { list-style: none; }
.toc a { display: flex; align-items: center; gap: 12px; min-height: 34px; padding: 3px 0; font-size: 15px; line-height: 1.3; color: var(--ink-2); text-decoration: none; }
.toc a::before { content: ""; flex: none; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); opacity: .22; transform: scaleX(.5); transform-origin: left center; transition: transform 240ms var(--ease), opacity 240ms ease; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); }
.toc a[aria-current="true"]::before { opacity: 1; transform: none; }

/* ---- the foot: /buy's ---- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; max-width: var(--max); margin: 0 auto; padding: 1.5rem var(--pad) calc(2rem + env(safe-area-inset-bottom)); font-size: 15px; color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.2rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.giant { overflow: hidden; margin: 0 auto; padding: 0 var(--pad); max-width: var(--max); height: .62em; font-size: clamp(96px, 26vw, 440px); font-weight: 600; line-height: .74; letter-spacing: -.02em; color: var(--paper-2); user-select: none; }

@media (prefers-reduced-motion: reduce) {
  .top, .toc a::before { transition: none; }
}

/* ---- printed: the document alone, in black on white ---- */
@media print {
  .top, .toc, .foot, .giant { display: none !important; }
  html, body { background: #fff; }
  body { font-size: 11pt; }
  .legal-head { padding: 0 0 18pt; }
  .legal-head h1 { font-size: 30pt; }
  .legal-head .standfirst { font-size: 13pt; }
  .legal-body { display: block !important; padding: 0; }
  .doc { max-width: none; color: #000; }
  .doc h2 { margin-top: 18pt; font-size: 15pt; break-after: avoid; }
  .doc a { text-decoration: none; }
  .js .legal-head > * { animation: none; }
}
