/*
  Pages légales (3 décembre 2026) : elles font partie du site. Même Onest, même palette Sobre (encre et or, gris teintés
  de bleu), même mode sombre (html.theme-dark, posé par legal.js) et mêmes barre et pied que les pages publiques
  (/home/chrome.css, balisage de server/publicHome.ts recopié à la main : ces pages sont statiques). Une colonne de
  lecture comme l'aide. Elles ne dépendent pas de l'application, s'affichent même si la régie ne démarre pas et ne
  font aucune requête vers un tiers. La police est déclarée par chrome.css.
*/
:root {
  color-scheme: light;
  --bg: #F4F5F7; --surface: #FFFFFF; --surface-2: #EAEDF1; --line: #D9DEE5; --line-strong: #78818D;
  --ink: #111418; --ink-2: #3C4451; --ink-3: #5B6472;
  --accent: #A16207; --accent-ink: #8A5306; --bad: #C2410C;
  --shadow-1: 0 1px 2px rgb(16 22 34 / .06), 0 1px 3px rgb(16 22 34 / .08);
  --r: 4px; --ease: cubic-bezier(.2, .7, .2, 1);
}
html.theme-dark {
  color-scheme: dark;
  --bg: #15181D; --surface: #1C2027; --surface-2: #242A32; --line: #2F3640; --line-strong: #68717E;
  --ink: #EEF1F5; --ink-2: #BCC3CD; --ink-3: #8F98A5;
  --accent: #E3B341; --accent-ink: #E3B341; --bad: #FF8A5C;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3), 0 1px 3px rgb(0 0 0 / .35);
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 Onest, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
main { width: min(46rem, 100% - clamp(2rem, 6vw, 5rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { margin: 0 0 .5rem; font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
h2 { margin: 2.75rem 0 .75rem; font-size: 1.375rem; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
h3 { margin: 1.75rem 0 .4rem; font-size: 1.0625rem; font-weight: 650; line-height: 1.3; }
p, li { color: var(--ink-2); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: .4rem; }
li::marker { color: var(--ink-3); }
main a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .22em; transition: text-decoration-color .15s; }
main a:hover { text-decoration-color: var(--accent); }
main a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
strong { color: var(--ink); font-weight: 650; }
small { color: var(--ink-3); }
code { font-size: .9em; }
.updated { margin: 0 0 2rem; font-size: .8125rem; color: var(--ink-3); }
/* Les pages légales entre elles : un filet, la page en cours soulignée d'or. */
nav.pages { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0 0 2.25rem; border-bottom: 1px solid var(--line); font-size: .9375rem; }
nav.pages a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink-3); font-weight: 600; text-decoration: none; transition: color .15s; }
nav.pages a:hover { color: var(--ink); }
nav.pages a[aria-current] { color: var(--ink); }
nav.pages a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
table { width: 100%; margin: .75rem 0 1.25rem; border-collapse: collapse; border-top: 1px solid var(--line); font-size: .9375rem; }
th, td { padding: .6rem 1rem .6rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { width: 34%; color: var(--ink); font-weight: 650; }
td { color: var(--ink-2); overflow-wrap: anywhere; }
.todo { display: block; margin: 1.25rem 0; padding: .7rem 1rem; border-left: 3px solid var(--bad); border-radius: 0 var(--r) var(--r) 0; background: var(--surface); color: var(--ink); font-size: .9375rem; }
@media (max-width: 36rem) {
  th, td { display: block; width: 100%; padding: .2rem 0; border-bottom: 0; }
  tr { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0s !important; } }
