/* privacypolicy.css — la politique de confidentialité, au gabarit commun des
   politiques Lorderis (legal.css, recopié tel quel d'Account-LordEris,
   reference/privacy/). Un fichier et non un bloc <style>, que la CSP du site
   (style-src 'self') refuserait. Cette page est servie SANS session par la
   porte (web/gate.php, PUBLIC_FILES) : elle ne charge que des fichiers que la
   porte sert aussi sans session, et ne peut donc pas reprendre src/styles.css,
   empaqueté sous assets/. Les couleurs sont celles de src/theme/palette.json,
   recopiées sous le nom de leurs jetons (src/lib/__tests__/presentation.test.ts
   les compare) ; les polices, celles de la porte (gate-*.woff2). La
   présentation (accueil.html) reprend cette feuille. */

@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(gate-bricolage-grotesque.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'Hanken Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(gate-hanken-grotesk.woff2) format('woff2-variations');
}

:root {
  color-scheme: light;
  --page: #f5f2ea;
  --surface: #fffdf8;
  --surface-2: #f0ebdf;
  --border: rgba(31, 38, 61, 0.1);
  --text: #171b26;
  --text-2: #4b5060;
  --muted: #62656e;
  --brand: #0a7062;
  --brand-soft: #e1f1ec;
  --accent: #1f2b4d;
  --accent-ink: #ffffff;
  --link: #2c4a8a;
  --hero: linear-gradient(135deg, #1b2442 0%, #17485a 100%);
  --hero-ink: #f7f2e6;
  --info-soft: #e7f0fb; --info-ink: #1d5aa6;
  --warn-soft: #fdf3dd; --warn-ink: #8a5a00;
  --alert-soft: #fbe8e8; --alert-ink: #b42f2f;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #0e1220;
  --surface: #161b2b;
  --surface-2: #1f2537;
  --border: rgba(236, 231, 220, 0.1);
  --text: #ece7dc;
  --text-2: #bdb8ad;
  --muted: #9a99a0;
  --brand: #3fcfae;
  --brand-soft: #13302d;
  --accent: #3fcfae;
  --accent-ink: #06231e;
  --link: #7ee0c8;
  --hero: linear-gradient(135deg, #1c2440 0%, #16405a 100%);
  --hero-ink: #f4eedf;
  --info-soft: #14243a; --info-ink: #8cbcf3;
  --warn-soft: #2e2512; --warn-ink: #f0c060;
  --alert-soft: #331a1d; --alert-ink: #f19a9a;
}

/* Les variables du gabarit (liste en tête de legal.css). */
:root {
  --lp-font-head: 'Bricolage Grotesque Variable', system-ui, sans-serif;
  --lp-font-body: 'Hanken Grotesk Variable', system-ui, sans-serif;
  --lp-head-lh: 1.08;
  --lp-ink: var(--text);
  --lp-ink-2: var(--text-2);
  --lp-muted: var(--muted);
  --lp-card: var(--surface);
  --lp-line: var(--border);
  --lp-hover: var(--surface-2);
  --lp-accent: var(--brand);
  --lp-accent-ink: var(--brand);
  --lp-accent-soft: var(--brand-soft);
  --lp-accent-line: var(--border);
  --lp-callout-icon: var(--surface);
  --lp-contact-bg: var(--hero);
  --lp-contact-ink: var(--hero-ink);
  --lp-contact-muted: var(--hero-ink);
  --lp-contact-link: var(--hero-ink);
  --lp-tone-1-bg: var(--brand-soft); --lp-tone-1-ink: var(--brand);
  --lp-tone-2-bg: var(--info-soft);  --lp-tone-2-ink: var(--info-ink);
  --lp-tone-3-bg: var(--warn-soft);  --lp-tone-3-ink: var(--warn-ink);
  --lp-tone-4-bg: var(--alert-soft); --lp-tone-4-ink: var(--alert-ink);
  --lp-blob: var(--brand-soft);
  --lp-radius-sm: 14px;
  --lp-radius-md: 20px;
  --lp-shadow: none;
  --lp-sticky-top: 56px;
  --lp-wrap: 1120px;
  --lp-gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.6 var(--lp-font-body);
}
a { color: var(--brand); }

/* La langue affichée masque l'autre bloc (privacypolicy.js pose <html lang>). */
html[lang='en'] [data-lang-block='fr'],
html:not([lang='en']) [data-lang-block='en'] { display: none !important; }

.pp-bar {
  position: sticky; top: 0; z-index: 5;
  background: var(--page);
  border-bottom: 1px solid var(--border);
}
.pp-bar__in {
  max-width: var(--lp-wrap); margin: 0 auto; padding: 0 var(--lp-gutter);
  min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 17px/1 var(--lp-font-head); }
.pp-brand img { width: 30px; height: 30px; border-radius: 8px; }
/* Les deux boutons ronds de lorderis.dev (lorderis-toggles.css, recopié tel
   quel d'Account-LordEris, reference/toggles/, chargé avant ce fichier)
   prennent l'accent de l'app, comme son bouton principal : --accent en fond,
   --accent-ink en lettres et en icône — 13,9:1 en clair (#1f2b4d sous du
   blanc), 8,5:1 en sombre (#3fcfae sous #06231e). Les deux variables suivent
   déjà le thème : une règle sur :root suffit. */
:root {
  --lorderis-toggle-bg: var(--accent);
  --lorderis-toggle-fg: var(--accent-ink);
}

.legal-hero .legal-eyebrow { color: var(--brand); }
.legal-hero h1 { font-weight: 800; letter-spacing: -0.02em; }
.legal-body h2, .legal-body h3 { font-weight: 700; }
/* Le pied de page LordEris (lorderis-footer.css, recopié tel quel
   d'Account-LordEris, reference/footer/) ne prend pas les couleurs de
   HealthChecks : sombre dans les deux thèmes, comme sur lorderis.dev, il n'a
   aucune variable à surcharger, et rien ici ne le vise. */
