/* Pravda's legal pages (/terms, /privacy, /data-deletion): public reading pages in the signed-in app's look, the
   same as the splash (Argon's Track B with depth). The desk in warm newsprint, the floating slate rail holding the
   three pages and the way back to sign in, the text on one lifted white sheet. Instrument Serif for the title,
   Plus Jakarta Sans to read, Berkeley Mono for the date, the numbers and the section kickers. Crimson only in the
   brand point. Same self-hosted fonts as splash.css (../fonts/); no script, no third-party request. */

@font-face { font-family: 'Berkeley Mono'; font-style: normal; font-weight: 100 500; font-display: swap; src: url('../fonts/BerkeleyMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Berkeley Mono'; font-style: normal; font-weight: 501 1000; font-display: swap; src: url('../fonts/BerkeleyMono-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --paper-elevated: #FFFFFF; --paper-sunken: #ECE9E1;
  --ink: #141413; --ink-secondary: #52504C; --ink-muted: #6E6B64; --rule: #DCD8CE; --rule-strong: #C4BFB3;
  --slate-text: #F3F1EC; --slate-muted: #A4A8B0;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: 'Berkeley Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --desk: #EBE7DF;
  --ring: 0 0 0 .5px rgba(20,20,19,.10), 0 0 0 1px rgba(20,20,19,.035);
  --edge: inset 0 1px 0 rgba(255,255,255,.95);
  --lift-2: var(--ring), 0 2px 3px rgba(20,20,19,.05), 0 8px 18px -4px rgba(20,20,19,.12), 0 26px 50px -18px rgba(20,20,19,.24);
  --gutter: clamp(16px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--desk); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; min-height: 100svh;
  background: var(--desk);
  color: var(--ink-secondary);
  font: 400 15px/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(20,20,19,.16); color: var(--ink); }
i { font-style: normal; color: var(--rule-strong); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0; padding: 0; margin: -1px; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px;
  text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.shell { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }

/* ── the floating rail (depth.css .rail) ─────────────────────────────────── */
.rail {
  position: sticky; top: 8px; align-self: start;
  margin: 8px 0 8px 8px;
  height: calc(100vh - 16px); height: calc(100dvh - 16px);
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 14px 14px;
  border-radius: 16px;
  color: var(--slate-text);
  background: linear-gradient(180deg, #1D1F23 0%, #16171A 38%, #131417 100%);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.035),
              0 3px 6px rgba(20,20,19,.14), 0 24px 48px -16px rgba(20,20,19,.55);
  overflow: hidden;
}
.rail i { color: #4A4E56; }
.rail a:focus-visible { outline-color: #fff; }
.rail-top { display: flex; align-items: center; padding: 0 6px 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--slate-text); text-decoration: none; }
.mark { width: 18px; height: 18px; display: block; flex: none; }
.wordmark { font: 400 14px/1 var(--font-mono); letter-spacing: -0.04em; }
.w-state { font-weight: 700; color: #E0384C; }   /* crimson lifted a step for the slate (4.6:1) */

.rail-nav { flex: 1; min-height: 0; }
.rail-label { font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate-muted);
  padding: 12px 8px 7px; }
.rail-nav ul { list-style: none; display: grid; gap: 3px; }
.rail-nav a {
  display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 10px; border-radius: 9px;
  font: 500 13.5px/1.2 var(--font-sans); color: #C9CCD2; text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.rail-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.rail-nav .no { font: 400 10.5px/1 var(--font-mono); letter-spacing: .06em; color: #6E727B; font-variant-numeric: tabular-nums; }
.rail-nav a[aria-current="page"] {   /* the lifted tile (depth.css .rail .nav a.active) */
  color: #fff;
  background: linear-gradient(180deg, #2D3036 0%, #222429 100%);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.35), 0 4px 10px -4px rgba(0,0,0,.4);
}
.rail-nav a[aria-current="page"] .no { color: var(--slate-muted); }

.rail-foot { display: grid; gap: 6px; padding: 12px 8px 2px; border-top: 1px solid rgba(255,255,255,.06);
  font: 400 10px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #7D818A; }
.rail-foot a, .foot a { color: inherit; text-decoration: none; }
.rail-foot a:hover { color: #fff; }
.rail-foot > a { color: var(--slate-text); }

/* ── the desk and the sheet ───────────────────────────────────────────────── */
.desk { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: max(clamp(20px, 4vh, 44px), env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right))
           max(16px, env(safe-area-inset-bottom)) var(--gutter); }
.home { align-self: center; width: 100%; max-width: 760px; display: block; line-height: 0; text-decoration: none; }
.home img { height: 44px; width: auto; display: block; }

.sheet {
  width: 100%; max-width: 760px;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 60px) clamp(28px, 4vw, 52px);
  border-radius: 16px;
  background: var(--paper-elevated);
  box-shadow: var(--lift-2), var(--edge);
}
.sheet > * { max-width: 64ch; }
.sheet > h2, .sheet > .updated { max-width: none; }

h1 { font: 400 clamp(36px, 5vw, 52px)/1.02 var(--font-serif); letter-spacing: -.012em; color: var(--ink); }
.updated { margin-top: 12px; padding-bottom: 20px; border-bottom: 1px dashed var(--rule);
  font: 500 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.updated time { color: var(--ink); font-variant-numeric: tabular-nums; }
.lede { margin-top: 22px; font-size: 17px; line-height: 1.6; color: var(--ink); }

/* a section opens with the app's kicker: tracked mono caps and the 5 px dot */
h2 { display: flex; align-items: center; gap: 9px; margin-top: 38px; padding-top: 16px; border-top: 1px solid var(--rule);
  font: 600 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
h2::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-secondary); flex: none; }
p, ul.list { margin-top: 12px; }
ul.list { padding-left: 2.2ch; }
ul.list li + li { margin-top: 6px; }
ul.list li::marker { color: var(--ink-muted); }
code { font: 400 .9em/1 var(--font-mono); color: var(--ink); background: var(--paper-sunken); padding: 1px 5px; border-radius: 4px;
  overflow-wrap: anywhere; }
strong { color: var(--ink); font-weight: 650; }

/* the footer shows only when the rail folds into the top bar */
.foot { display: none; width: 100%; max-width: 760px; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  padding: 4px 4px 0; font: 400 10px/1.6 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.foot a:hover { color: var(--ink); }

@media (max-width: 1100px) { .shell { grid-template-columns: 232px minmax(0, 1fr); } }

/* ── narrow: the rail folds into a slate bar on top, the three pages as pills ── */
@media (max-width: 900px) {
  .shell { display: block; }
  .rail { position: static; height: auto; margin: max(8px, env(safe-area-inset-top)) 8px 0; padding: 10px 10px 10px 14px;
    flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; border-radius: 14px; }
  .rail-top { padding: 0; }
  .rail-nav { flex: 0 1 auto; }
  .rail-label, .rail-foot, .rail-nav .no { display: none; }
  .rail-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .rail-nav a { min-height: 36px; padding: 0 11px; font-size: 12.5px; }
  .desk { padding-top: 20px; gap: 18px; }
  .home img { height: 36px; }
  .foot { display: flex; }
}
@media (max-width: 560px) {
  .rail-nav { flex-basis: 100%; }
  .rail-nav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail-nav a { justify-content: center; text-align: center; padding: 4px 6px; min-height: 40px; line-height: 1.15; }
  .sheet { border-radius: 14px; }
  body { font-size: 14.5px; }
  .lede { font-size: 16px; }
}
@media (pointer: coarse) { .rail-nav a { min-height: 44px; } }
