/* The shell the three text pages share — à propos, CGU, mentions légales.
 *
 * Same night gradient as the landing page, and the same palette read from
 * design/tokens.ts, because these pages ARE the landing page's small print:
 * a legal notice that looks like it belongs to another site reads like one.
 *
 * index.html keeps its own inline styles rather than importing this. It is a
 * single-screen page with no second render and no navigation; a blocking
 * stylesheet request would buy it nothing but a round trip. These pages are
 * three, and three copies of the same rules is three copies to keep in
 * agreement.
 */

:root {
  --accent: #5E5CE6;
  --accent-light: #8B89F0;
  --accent-text: #C7C6FA;
  --ink: #FFFFFF;
  --ink-soft: rgba(255, 255, 255, 0.62);
  --ink-softer: rgba(255, 255, 255, 0.38);
  --hairline: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #0D0D16 linear-gradient(180deg, #0D0D16 0%, #151122 52%, #1A1430 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); }

/* Pas de barre de navigation, pas de retour à l'accueil : ce ne sont pas les
   pages d'un site, ce sont trois documents qu'on ouvre par un lien et qu'on
   referme. Un bouton « retour » leur donnerait l'air d'une arborescence qui
   n'existe pas. */
main {
  max-width: 640px;
  margin: 0 auto;
  /* safe-area : ces pages s'ouvrent souvent en plein écran sur iPhone. */
  padding: max(40px, env(safe-area-inset-top) + 28px) 20px
           max(48px, env(safe-area-inset-bottom) + 32px);
}

h1 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

h2 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-softer);
  font-weight: 600;
  margin: 32px 0 12px;
}
h2:first-of-type { margin-top: 24px; }

p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 6px; }

.lead { color: var(--ink-soft); font-size: 14px; }
.updated { color: var(--ink-softer); font-size: 12.5px; margin-bottom: 4px; }

/* Les crédits sont une liste de trois lignes, pas trois encadrés : une
   attribution due se lit en entier ou pas du tout, et l'habiller en cartes la
   fait passer pour du contenu. */
.credits { list-style: none; margin: 0; padding: 0; color: var(--ink-soft); }
.credits li { margin-bottom: 8px; }

/* The one clause a reader must not skim: the places can be wrong. */
.warn { border-left: 2px solid var(--accent-light); padding-left: 14px; margin: 0 0 12px; }

footer {
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
  padding-top: 16px;
  color: var(--ink-softer);
  font-size: 12.5px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .note { flex-basis: 100%; margin: 0; }
