/* Caasi : pages légales servies seulement sur caasi.app (/cgu/, /terms/).
   Même mise en page que /confidentialite/ et /privacy/, dont la feuille est
   en ligne dans la page (elles restent lisibles seules, à l'ancienne URL
   OVH) : changer les deux ensemble. Charte : miroir des tokens de l'app
   (src/shared/theme/global.css). */

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/quicksand-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --surface: hsl(40 33% 95%);
  --card: hsl(0 0% 100%);
  --ink: hsl(277 14% 22%);
  --muted: hsl(285 12% 61%);
  --faint: hsl(274 18% 79%);
  --sleep: hsl(250 49% 44%);
  --line: hsl(36 20% 87%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: hsl(30 6% 8%);
    --card: hsl(258 15% 17%);
    --ink: hsl(40 20% 92%);
    --muted: hsl(260 8% 62%);
    --faint: hsl(260 10% 46%);
    --sleep: hsl(247 69% 74%);
    --line: hsl(32 8% 17%);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-decoration: none;
  color: inherit;
}

.brand img { width: 44px; height: 44px; }

.brand span {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

h1 {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  text-wrap: balance;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 28px;
}

section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 26px;
  margin: 16px 0;
}

h2 {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--sleep);
}

p, li { margin: 8px 0; }
ul { padding-left: 20px; margin: 8px 0; }
a { color: var(--sleep); }
strong { font-weight: 650; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.top .brand { margin-bottom: 0; }

/* Sélecteur FR | EN : chaque position mène à la page jumelle. */
.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: "Quicksand", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}

.lang a[aria-current] {
  background: var(--sleep);
  color: var(--card);
}

footer {
  color: var(--faint);
  font-size: 0.85rem;
  margin-top: 32px;
  text-align: center;
}
