/* Page statique des mentions légales : mêmes jetons que le site (`src/styles/global.css`), thème clair par
   défaut, thème sombre via `data-theme` (posé par `mentions-legales.js`) ou, sans JavaScript, via le système. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #0c0f13;
  --ink-soft: #364152;
  --muted: #55657a;
  --line: #e3e9f0;
  --link: #15803d;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #101720;
  --ink: #e8eef6;
  --ink-soft: #c3cedb;
  --muted: #9aa8b8;
  --line: #26303c;
  --link: #7fd8a1;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #101720;
    --ink: #e8eef6;
    --ink-soft: #c3cedb;
    --muted: #9aa8b8;
    --line: #26303c;
    --link: #7fd8a1;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.legal h1 {
  margin: 1.5rem 0 0.25rem;
  font-size: 2rem;
  line-height: 1.2;
}

.legal h2 {
  margin: 2rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
}

.legal p,
.legal li,
.legal address {
  color: var(--ink-soft);
}

.legal address {
  font-style: normal;
}

.legal__updated {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal__back {
  margin: 0;
}

.legal a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

.legal a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
