/* Shared styling for the legal and governance pages.
   Deliberately one small stylesheet rather than styles inlined into four
   documents: these pages get edited by whoever is closest to the change, and a
   presentation tweak should not mean touching four files and getting three of
   them slightly different. */
:root {
  --green: #12805a;
  --green2: #0c5f43;
  --ink: #10231b;
  --muted: #4a6459;
  --paper: #f6faf8;
  --line: #d8e6df;
  --warnbg: #fdf3e0;
  --warn: #8a5a00;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.topbar { background: var(--green); color: #eafff4; padding: 0.9rem 1rem; }
.topbar a { color: #eafff4; text-decoration: none; font-weight: 600; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 2rem 1.1rem 4rem; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.15; margin: 0 0 0.4rem; text-wrap: balance; }
h2 { font-size: 1.2rem; margin: 2.2rem 0 0.5rem; color: var(--green2); text-wrap: balance; }
h3 { font-size: 1rem; margin: 1.4rem 0 0.35rem; }
p, li { margin: 0 0 0.9rem; }
ul { padding-left: 1.2rem; }
a { color: var(--green2); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px; }
.muted { color: var(--muted); }
.stamp { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.6rem; }
/* The draft banner. Loud on purpose — these pages are reachable by URL before
   anyone has agreed they are in force, and a policy that looks final while it
   is still a draft is worse than no policy at all. */
.draft {
  background: var(--warnbg); border: 1px solid #e8cf9a; border-left: 4px solid var(--warn);
  border-radius: 0 8px 8px 0; padding: 0.9rem 1.1rem; margin: 0 0 1.8rem;
}
.draft p { margin: 0 0 0.5rem; font-size: 0.93rem; }
.draft p:last-child { margin: 0; }
.draft strong { color: var(--warn); }
/* An unresolved question, marked where it sits rather than collected at the
   end, so nobody reads past one without noticing. */
.todo {
  background: #fff; border: 1px dashed #c9a86a; border-radius: 8px;
  padding: 0.6rem 0.85rem; margin: 0 0 0.9rem; font-size: 0.92rem; color: var(--warn);
}
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; margin: 0 0 1.2rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.scroll { overflow-x: auto; }
footer { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.2rem; color: var(--muted); font-size: 0.88rem; }
.pagenav { margin-bottom: 1rem; line-height: 2.1; }
.pagenav a { color: var(--green2); }
.pagenav a:hover { color: var(--green); }
.pagenav [aria-current="page"] { color: var(--muted); font-weight: 600; }
.pagenav .sep { color: var(--line); padding: 0 0.35rem; }
@media (prefers-color-scheme: dark) {
  :root { --ink:#dfeee6; --paper:#0c1813; --muted:#9ab3a8; --line:#254036; --green2:#7ad9b3; --warnbg:#2e2313; --warn:#e0a33f; }
  .draft { border-color:#5a4620; }
  .todo { background:#16261f; border-color:#5a4620; }
}
