/* Shared shell for the two legal documents.
   They are plain HTML on purpose: no bundle, no hydration, no JavaScript
   between a reader and a policy they may be reading because something went
   wrong. Tokens are copied from the app's own custom properties. */

:root {
  color-scheme: dark;
  --bg: #07030f;
  --bg2: #0b0518;
  --ink: #f7f2ff;
  --dim: #a79abf;
  --faint: #9186b0;
  --mag: #ff2ec4;
  --line: rgba(247, 242, 255, 0.09);
  --mark-grad: linear-gradient(135deg, #ff2ec4, #b14bff);
  --mark-ink: #07030f;
  --todo-bg: rgba(255, 46, 196, 0.14);
  --todo-ring: rgba(255, 46, 196, 0.4);
}

/* light theme · marsala — mirrors the app's own tokens */
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #faf6f5;
  --bg2: #f4ecea;
  --ink: #221718;
  --dim: #6b5a59;
  --faint: #786562;
  --mag: #9e4a49;
  --line: rgba(34, 23, 24, 0.1);
  --mark-grad: linear-gradient(135deg, #b3625f, #7e4443);
  --mark-ink: #fbf4f3;
  --todo-bg: rgba(149, 82, 81, 0.12);
  --todo-ring: rgba(149, 82, 81, 0.4);
}

/* the pages work with no JavaScript; there the OS decides */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #faf6f5;
    --bg2: #f4ecea;
    --ink: #221718;
    --dim: #6b5a59;
    --faint: #786562;
    --mag: #9e4a49;
    --line: rgba(34, 23, 24, 0.1);
    --mark-grad: linear-gradient(135deg, #b3625f, #7e4443);
    --mark-ink: #fbf4f3;
    --todo-bg: rgba(149, 82, 81, 0.12);
    --todo-ring: rgba(149, 82, 81, 0.4);
  }
}

@font-face {
  font-family: 'Clash Display';
  src: url('/fonts/clash-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/g-1.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/g-2.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--dim);
  font-family: Archivo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  padding: 0 max(24px, env(safe-area-inset-left)) calc(80px + env(safe-area-inset-bottom));
}

.wrap { max-width: 720px; margin: 0 auto; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 0;
  margin-bottom: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--mark-grad);
  display: grid; place-items: center;
}
.brand .mark svg { fill: var(--mark-ink); }
.brand .mark svg { display: block; }

.back {
  font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--faint); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.back:hover { color: var(--mag); }

h1 {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
}

.updated {
  font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--mag); margin: 0 0 8px;
}

.lede { font-size: 17px; color: var(--dim); margin: 0 0 12px; }

h2 {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.2;
  color: var(--ink);
  margin: 52px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 15px; font-weight: 600; color: var(--ink);
  margin: 28px 0 6px;
}

p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 8px; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--mag); }

/* Anything the operator still has to fill in is marked, not quietly invented. */
.todo {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--todo-bg);
  box-shadow: inset 0 0 0 1px var(--todo-ring);
  color: var(--ink);
  font-size: 0.92em;
}

.note {
  margin: 40px 0 0;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--bg2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px;
  color: var(--faint);
}

footer.end {
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
footer.end a { color: var(--faint); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
footer.end a:hover { color: var(--mag); }
