/* Pages légales Duorali : même univers que la page d'accueil (bleu nuit + or,
   Cormorant Garamond pour les titres, Jost pour le texte). Thème sombre par
   défaut comme la landing, clair si le visiteur l'a choisi. */
:root {
  --bg: #020810;
  --bg-elev: #060e1a;
  --card: #0f1d30;
  --text: #eef3fb;
  --text-muted: #a4b0c4;
  --text-dim: #7a8699;
  --gold: #e8c547;
  --gold-soft: #f5d97a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f3ee;
    --bg-elev: #ffffff;
    --card: #ffffff;
    --text: #10182a;
    --text-muted: #4b5468;
    --text-dim: #6b7488;
    --gold: #b4892b;
    --gold-soft: #c89a39;
    --border: rgba(10, 15, 30, 0.1);
    --border-strong: rgba(10, 15, 30, 0.18);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f3ee;
  --bg-elev: #ffffff;
  --card: #ffffff;
  --text: #10182a;
  --text-muted: #4b5468;
  --text-dim: #6b7488;
  --gold: #b4892b;
  --gold-soft: #c89a39;
  --border: rgba(10, 15, 30, 0.1);
  --border-strong: rgba(10, 15, 30, 0.18);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #020810;
  --bg-elev: #060e1a;
  --card: #0f1d30;
  --text: #eef3fb;
  --text-muted: #a4b0c4;
  --text-dim: #7a8699;
  --gold: #e8c547;
  --gold-soft: #f5d97a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.topbar-inner, main, .foot-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--gold); }
.back { font-size: 14px; font-weight: 400; color: var(--text-muted); text-decoration: none; }
.back:hover { color: var(--gold); }

main { padding-top: 48px; padding-bottom: 64px; }
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.1;
  margin: 0 0 12px;
  text-wrap: balance;
}
.updated { color: var(--text-dim); font-size: 14px; margin: 0 0 32px; }
.lead { font-size: 18px; color: var(--text-muted); max-width: 65ch; }
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-wrap: balance;
}
h3 { font-size: 17px; font-weight: 500; margin: 24px 0 6px; color: var(--text); }
p, li { max-width: 65ch; }
ul { padding-left: 20px; }
li { margin: 4px 0; }
strong { font-weight: 500; color: var(--text); }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); }
th { font-weight: 500; color: var(--text); background: var(--card); }
tr:last-child td { border-bottom: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 20px 0;
}
.card p { margin: 4px 0; }

footer { border-top: 1px solid var(--border); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 14px;
  color: var(--text-dim);
}
.foot-inner a { color: var(--text-muted); text-decoration: none; }
.foot-inner a:hover, .foot-inner a[aria-current="page"] { color: var(--gold); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  main { padding-top: 32px; }
  h2 { font-size: 24px; }
}
