/* The data, privacy and security page (TKT-185): public, no sign-in. Ride Free design law v2 (DESIGN.md), after the website's home page
   (prototype I): a Charcoal bar and hero, Paper for the reading, a Charcoal close and footer. Flat grounds, 2px radius, no shadows, hairlines
   for separation, one brush highlight (the headline), dash bullets, one Fern button. Fonts are self-hosted (OFL, see /static/fonts/). */

@font-face { font-family: "Instrument Sans"; src: url(/static/fonts/InstrumentSans-latin-var.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url(/static/fonts/FragmentMono-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --rf-charcoal: #1A1A18; --rf-paper: #F4F2EC; --rf-fern: #038C65; --rf-fern-bright: #0BBF8C; --rf-dune: #DCC6A2;
  --rf-white: #FFFFFF; --rf-ink: #1A1917; --rf-muted: #6D6B68;
  --rf-line: rgba(26, 25, 23, .16); --rf-line-dk: rgba(255, 255, 255, .14); --rf-muted-dk: rgba(255, 255, 255, .64);
  --rf-mark: var(--rf-fern);
  --rf-font: "Instrument Sans", system-ui, sans-serif;
  --rf-mono: "Fragment Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --rhythm: clamp(56px, 7vw, 104px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--rf-paper); color: var(--rf-ink); font: 400 16px/1.55 var(--rf-font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--rf-white); color: var(--rf-ink); padding: 8px 12px; outline: 2px solid var(--rf-fern); }
.wrap { max-width: calc(1320px + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); position: relative; }

/* grounds: each its own stacking context, so the brush (z-index -1) shows on it (DESIGN.md s6) */
[data-rf-ground] { isolation: isolate; }
[data-rf-ground="charcoal"] { background: var(--rf-charcoal); color: var(--rf-white); --rf-mark: var(--rf-dune); }
[data-rf-ground="paper"] { background: var(--rf-paper); color: var(--rf-ink); --rf-mark: var(--rf-fern); }
[data-rf-ground="charcoal"] :focus-visible { outline: 2px solid var(--rf-fern-bright); outline-offset: 3px; }
[data-rf-ground="paper"] :focus-visible { outline: 2px solid var(--rf-fern); outline-offset: 3px; }

/* ---------- the bar: wordmark left, one link right ---------- */
.top { padding: 20px 0; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img, .foot img { display: block; height: 28px; width: auto; }
.toplink { --rf-mark: var(--rf-fern-bright); font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .8); padding: 6px 2px; transition: color 200ms ease; }
.toplink:hover, .toplink:focus-visible { color: var(--rf-white); }

/* ---------- the hero ---------- */
.hero { padding: var(--rhythm) 0; border-top: 1px solid var(--rf-line-dk); }
.hero h1 { font-weight: 600; font-size: clamp(34px, 5.6vw, 80px); line-height: 1.12; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
.nb { white-space: nowrap; }
.lede { margin-top: clamp(24px, 2.6vw, 36px); max-width: 52ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, .88); }
.stamp { margin-top: 28px; font-family: var(--rf-mono); font-size: 13px; color: var(--rf-muted-dk); }

/* ---------- the reading ---------- */
.body { padding: var(--rhythm) 0; }
.cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }

.toc { position: sticky; top: 24px; }
.toc-h { font-size: 14px; font-weight: 500; color: var(--rf-muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; border-top: 1px solid var(--rf-line); }
.toc li { border-bottom: 1px solid var(--rf-line); }
.toc a { display: block; padding: 10px 0; font-size: 15px; font-weight: 500; line-height: 1.35; text-decoration: none; text-decoration-color: var(--rf-fern); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.toc a:hover, .toc a:focus-visible { text-decoration-line: underline; }

.doc section { padding: 36px 0 44px; border-top: 1px solid var(--rf-line); }
.doc section:first-child { padding-top: 0; border-top: 0; }
.doc h2 { font-weight: 600; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 18px; }
.doc p, .doc li { max-width: 58ch; font-size: 17px; line-height: 1.6; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 14px; }
.doc li + li { margin-top: 8px; }
.doc ul[data-brush-list="dash"] { margin-top: 14px; }
.doc a.rt { text-decoration: underline; text-decoration-color: var(--rf-fern); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* in short: hairline rows, a title and one line (DESIGN.md s8, lists and rows) */
.rows { list-style: none; padding: 0; border-top: 1px solid var(--rf-line); }
.rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; padding: 20px 0 22px; border-bottom: 1px solid var(--rf-line); max-width: none; }
.rows li + li { margin-top: 0; }
.rows h3 { font-weight: 600; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.25; letter-spacing: -.015em; }
.rows p { font-size: 16px; color: var(--rf-muted); }

/* ---------- the close ---------- */
.contact { padding: var(--rhythm) 0; border-top: 1px solid var(--rf-line-dk); }
.contact h2 { font-weight: 600; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.025em; max-width: 18ch; }
.contact p { margin-top: 16px; max-width: 46ch; color: rgba(255, 255, 255, .88); font-size: 17px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; margin-top: 28px; border-radius: 2px; border: 1px solid transparent; background: var(--rf-fern); color: var(--rf-white); font: 600 15px/1 var(--rf-font); transition: background 250ms ease, color 250ms ease; }
.btn:hover, .btn:focus-visible { background: var(--rf-dune); color: var(--rf-ink); }
.contact .addr { margin-top: 18px; font-size: 16px; font-weight: 500; color: var(--rf-white); }

.foot { border-top: 1px solid var(--rf-line-dk); padding: 36px 0 44px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { font-size: 15px; font-weight: 500; color: var(--rf-muted-dk); transition: color 200ms ease; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--rf-white); }

/* ---------- phone: one column ---------- */
@media (max-width: 880px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .doc p, .doc li { font-size: 16.5px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
