/*
  Les pages legales (/terms/, /privacy/) : exigees par les stores (dApp Store
  Solana, Play, App Store) sous forme de liens publics. Meme palette que
  l'accueil, mais une colonne de texte lisible : pas d'art, pas de script.
*/

/* Les polices du logo (2026-11-10), comme l'accueil : CS Clarion pour les
   titres, CS Quartic pour les libelles ; leurs accents et leur ponctuation
   dans *-extra (tools/home-font-extras.py) ; les chiffres en Barlow. */
@font-face { font-family: 'RR Clarion'; src: url('/assets/home/clarion.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'RR Clarion Extra'; src: url('/assets/home/clarion-extra.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'RR Quartic'; src: url('/assets/home/quartic.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'RR Quartic Extra'; src: url('/assets/home/quartic-extra.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'RR Barlow'; src: url('/assets/home/barlow-condensed-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

@font-face {
  font-family: 'D8 Pixel';
  src: url('/assets/d8-pixel.woff2') format('woff2');
  font-display: swap;
}

:root {
  --night: #10222b;
  --night-deep: #0a161c;
  --gold: #f2c14e;
  --cream: #f7f0e1;
  --mist: #b8c7c4;
  --rule: rgba(247, 240, 225, 0.12);
  --display: 'RR Clarion', 'RR Clarion Extra', 'RR Barlow', system-ui, sans-serif;
  --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pixel: 'RR Quartic', 'RR Quartic Extra', 'RR Barlow', system-ui, sans-serif;
  --ink-rim: #301a0c;
}

:lang(vi), :lang(zh), :lang(ja) { --display: 'RR Barlow', system-ui, sans-serif; --pixel: system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--gold); }
a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px;
}
header.top img { width: 150px; height: auto; display: block; }
header.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; font-family: var(--pixel); font-size: 17px; }
header.top nav a { text-decoration: none; }
header.top nav a[aria-current='page'] { color: var(--cream); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 16px 64px;
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 8vw, 56px);
  line-height: 1.05;
  margin: 24px 0 8px;
  color: #ffd646;
  /* le trait encre et l'ombre dure du logo avec le nom */
  text-shadow: .06em 0 0 var(--ink-rim), -.06em 0 0 var(--ink-rim), 0 .06em 0 var(--ink-rim), 0 -.06em 0 var(--ink-rim),
    .045em .045em 0 var(--ink-rim), -.045em .045em 0 var(--ink-rim), .045em -.045em 0 var(--ink-rim), -.045em -.045em 0 var(--ink-rim),
    0 .11em 0 var(--ink-rim);
}
.updated { font-family: var(--pixel); font-size: 16px; color: var(--mist); margin: 0 0 32px; }
.lead { font-size: 19px; }
/* Les pages traduites (tools/build-home.ts) : la ligne des langues et l'avis « l'original fait foi ». */
.page-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 22px; font-size: 14px; font-weight: 700; }
.page-langs a { color: var(--mist); text-decoration: none; }
.page-langs a:hover { color: var(--cream); }
.page-langs a[aria-current] { color: #ffd646; }
.note { margin: -18px 0 32px; padding: 10px 14px; border-left: 3px solid #ffd646; background: rgba(255, 214, 70, .07); font-size: 15px; color: var(--mist); }
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 44px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
h3 { font-size: 17px; margin: 22px 0 4px; }
p, li { color: var(--cream); }
ul { padding-left: 22px; }
li { margin: 6px 0; }
strong { color: #fff; }
.note {
  background: var(--night-deep);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 20px 0;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  background: var(--night-deep);
  color: #9fb2af;
  font-family: var(--pixel);
  font-size: 16px;
}
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
