/* Shared styles for the plain text pages (privacy, accessibility). Same tokens as index.html. */
:root {
  --bg: #c2eef0;
  --ink: #10303a;
  --ink-soft: #3d626b;
  --coral: #ff6f5e;
  --butter: #ffd76a;
  --cream: #fff8ec;
  --mint: #a4e8c8;
}
* { box-sizing: border-box; }
body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }

/* Same grain as the home page: covers the whole document, jumps every 1.5s. */
.grain {
  position: absolute; inset: 0; z-index: 100; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: grain 6s steps(1) infinite;
}
@keyframes grain {
  0%   { background-position: 0 0; }
  25%  { background-position: -71px 43px; }
  50%  { background-position: 97px -61px; }
  75%  { background-position: -38px -112px; }
}
.motion-off .grain { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .skip-link { transition: none; }
}
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
main:focus { outline: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 10;
  padding: 10px 18px; border-radius: 999px; border: 2.5px solid var(--ink);
  background: var(--butter); color: var(--ink); font-weight: 800; text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.wrap { width: min(820px, 100% - 32px); margin-inline: auto; }
header { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.motion-toggle {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2.5px solid var(--ink); background: var(--cream); color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.motion-toggle[hidden] { display: none; }
@media (hover: hover) { .motion-toggle:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); } }
.motion-toggle:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle .i-play { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: block; }
.motion-toggle[aria-pressed="true"] .i-pause { display: none; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; text-decoration: none;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--coral); border: 2.5px solid var(--ink);
  display: grid; place-items: center; box-shadow: 3px 3px 0 var(--ink);
}
.logo-mark::after { content: ""; width: 12px; height: 4px; background: var(--ink); border-radius: 2px; }

.doc {
  background: var(--cream); border: 3px solid var(--ink); border-radius: 24px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(22px, 5vw, 56px);
  margin: 12px 0 60px;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; letter-spacing: -.045em; margin: 0 0 10px; }
h2 { font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.15; margin: 2.2em 0 .5em; }
h3 { font-size: 1.12rem; margin: 1.6em 0 .3em; }
p, li { text-wrap: pretty; }
.meta { color: var(--ink-soft); font-weight: 600; margin: 0 0 28px; }
.lead { font-size: 1.15rem; }
.callout {
  background: var(--mint); border: 2.5px solid var(--ink); border-radius: 16px;
  padding: 16px 20px; margin: 24px 0; font-weight: 600;
}
.callout p { margin: 0; }
.callout p + p { margin-top: .6em; }
ul { padding-left: 1.3em; }
li + li { margin-top: .35em; }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 2.5px solid var(--ink); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1.5px solid #10303a33; }
thead th { background: var(--butter); border-bottom: 2.5px solid var(--ink); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 800; }
caption { text-align: left; padding: 0 0 8px; font-weight: 700; caption-side: top; }

footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  padding: 28px 0 40px; border-top: 2.5px solid var(--ink); font-weight: 600; color: var(--ink-soft);
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a[aria-current="page"] { color: var(--ink); font-weight: 800; }
