/* Pages legales Uzen Bot. Palette et typo reprises de la landing pour que les pages
   n'aient pas l'air rapportees. Aucune ressource externe : ni police distante ni CDN,
   la page doit se charger vite et sans dependance depuis un lien de mail. */

:root {
  --bg: #f1ecdf;
  --surface: #faf7ee;
  --ink: #182219;
  --muted: #586257;
  --line: #ddd6c5;
  --sage: #a9c76b;
  --sage-ink: #3c5a1f;
  --forest: #1f3d31;
  --maxw: 760px;
  --font-head: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12201a;
    --surface: #182c23;
    --ink: #ece6d5;
    --muted: #9db09b;
    --line: #294034;
    --sage-ink: #dff0c2;
    --forest: #0f2019;
  }
}

/* Le selecteur de theme de la landing pose data-theme sur la racine : il doit gagner
   dans les deux sens, sinon un visiteur en theme clair force verrait une page sombre. */
:root[data-theme="dark"] {
  --bg: #12201a;
  --surface: #182c23;
  --ink: #ece6d5;
  --muted: #9db09b;
  --line: #294034;
  --sage-ink: #dff0c2;
  --forest: #0f2019;
}

:root[data-theme="light"] {
  --bg: #f1ecdf;
  --surface: #faf7ee;
  --ink: #182219;
  --muted: #586257;
  --line: #ddd6c5;
  --sage-ink: #3c5a1f;
  --forest: #1f3d31;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--sage-ink); }

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  margin-left: 18px;
}

nav.site a:hover { color: var(--ink); }

main { padding: 44px 0 72px; }

h1 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.lede {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0 0 34px;
}

h2 {
  font-family: var(--font-head);
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

h2:first-of-type { border-top: 0; padding-top: 0; }

h3 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  margin: 24px 0 8px;
}

p, li { margin: 0 0 12px; }

ul { padding-left: 22px; }

a { color: var(--sage-ink); }

strong { font-weight: 650; }

.resume {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 34px;
}

.resume p:last-child { margin-bottom: 0; }

table.ident {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
  font-size: 0.97rem;
}

table.ident th,
table.ident td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

table.ident th {
  font-weight: 600;
  color: var(--muted);
  width: 38%;
  white-space: nowrap;
}

/* Les tableaux doivent defiler dans leur propre boite : sur mobile, le corps de page
   ne doit jamais partir en scroll horizontal. */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cta {
  display: inline-block;
  background: var(--sage);
  color: #1b2a10;
  font-weight: 650;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 10px;
  margin: 6px 0 4px;
}

.cta:hover { background: #b6d179; }

footer.site {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  padding: 26px 0;
}

footer.site a { color: var(--muted); }

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.maj {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 34px;
}
