/* Feuille commune aux pages légales. Palette et typographie reprises de la
   landing (index.html), elle-même dérivée du design system de l'app. */
:root {
  --sand:        #f0ede9;
  --sand-card:   #f7f5f2;
  --white:       #ffffff;
  --ink:         #1a1614;
  --ink-2:       #5a5650;
  --ink-3:       #8a837a;
  --pine:        #3d6b5a;
  --pine-hover:  #30574a;
  --pine-light:  #b1c4bd;
  --ochre:       #b8862a;
  --border:      #e0dbd4;
  --border-2:    #ccc6be;

  --font-display: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sand:#0a0907; --sand-card:#1e1b18; --white:#181614;
    --ink:#f0ece6; --ink-2:#b0aa9e; --ink-3:#7a736a;
    --pine:#6fa98e; --pine-hover:#5d9279; --pine-light:#c5ddd2; --ochre:#d4a650;
    --border:#302a24; --border-2:#3e3830;
  }
}
:root[data-theme="light"] {
  --sand:#f0ede9; --sand-card:#f7f5f2; --white:#fff;
  --ink:#1a1614; --ink-2:#5a5650; --ink-3:#8a837a;
  --pine:#3d6b5a; --pine-hover:#30574a; --pine-light:#b1c4bd; --ochre:#b8862a;
  --border:#e0dbd4; --border-2:#ccc6be;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --sand:#0a0907; --sand-card:#1e1b18; --white:#181614;
  --ink:#f0ece6; --ink-2:#b0aa9e; --ink-3:#7a736a;
  --pine:#6fa98e; --pine-hover:#5d9279; --pine-light:#c5ddd2; --ochre:#d4a650;
  --border:#302a24; --border-2:#3e3830;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* en-tête */
header.top {
  border-bottom: 1px solid var(--border);
  background: var(--sand-card);
}
.top-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 20px 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  letter-spacing: -.02em; text-decoration: none; color: var(--ink);
}
.brand svg { width: 26px; height: 26px; flex: none; }
/* Le wordmark doit être UN seul élément flex : sans l'enveloppe .name, le texte
   « Ana » et le <span> « base » en deviennent deux, et le `gap` du conteneur
   s'insère entre les deux moitiés du mot. */
.brand .name span { color: var(--pine); }
.lang { font-size: 14px; color: var(--ink-2); }
.lang a { color: var(--pine); text-decoration: none; font-weight: 650; }
.lang a:hover { text-decoration: underline; }

/* corps du document */
main { padding: 56px 0 80px; }
h1 {
  font-family: var(--font-display);
  font-size: clamp(31px, 5vw, 43px);
  line-height: 1.06; letter-spacing: -.03em; font-weight: 800;
  margin: 0 0 12px; text-wrap: balance;
}
.updated {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-3);
  margin: 0 0 40px;
}
h2 {
  font-family: var(--font-display);
  font-size: 23px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800;
  margin: 46px 0 14px; padding-top: 26px; border-top: 1px solid var(--border);
  text-wrap: balance;
}
h2:first-of-type { border-top: none; padding-top: 0; }
h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; letter-spacing: -.01em; }
p { margin: 0 0 15px; }
a { color: var(--pine); }
a:hover { color: var(--pine-hover); }
strong { font-weight: 680; }

ul, ol { margin: 0 0 15px; padding-left: 22px; }
li { margin-bottom: 7px; }
li::marker { color: var(--ink-3); }

/* encadré d'avertissement */
.callout {
  background: var(--sand-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ochre);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 0 0 24px;
}
.callout p:last-child { margin-bottom: 0; }
.callout .label {
  font-size: 12px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ochre); margin-bottom: 7px;
}

/* tableaux de traitements */
.table-scroll { overflow-x: auto; margin: 0 0 22px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 460px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
  border-bottom-color: var(--border-2);
}
td code { font-family: var(--font-mono); font-size: 13.5px; color: var(--pine); }

/* pied de page */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 46px;
  font-size: 14px; color: var(--ink-3);
}
footer .cols { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 12px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
