/* PRAYZ - pages légales (conditions d'utilisation, politique de confidentialité).
   Fichier autonome : ces pages sont publiques (gate.js les laisse passer) et ne chargent
   ni le reste du site ni Google Fonts. Mêmes couleurs que bible.css, en clair et en sombre. */

:root {
  --paper: #F5F3EE;
  --surface: #FFFFFF;
  --ink: #1D1726;
  --muted: #6D6578;
  --line: #E2DDE6;
  --violet: #3B1D6E;
  --violet-soft: #ECE6F4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16131B; --surface: #221D2A; --ink: #ECE7F2; --muted: #A49BB0; --line: #322B3B;
    --violet: #C3AEEB; --violet-soft: #2C2340;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(48px + env(safe-area-inset-bottom, 0px));
}
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.legal-brand { color: var(--violet); font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.legal-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--violet); font-weight: 600; }
h1 { margin: 0 0 4px; font-size: 32px; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.legal-date { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
h2 { margin: 32px 0 8px; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
p, li { margin: 0 0 10px; }
ul { margin: 0 0 10px; padding-left: 1.2em; }
a { color: var(--violet); text-underline-offset: 2px; }
strong { font-weight: 700; }
.legal-note { margin: 0 0 24px; padding: 14px 16px; border-radius: 16px; background: var(--violet-soft); border: 1px solid var(--line); }
.legal-note p:last-child { margin-bottom: 0; }
table { width: 100%; margin: 0 0 12px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-weight: 700; }
.legal-table { overflow-x: auto; }
footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (min-width: 40rem) {
  .legal { padding-top: 48px; padding-left: 24px; padding-right: 24px; }
  h1 { font-size: 40px; }
}
@media (hover: hover) {
  a:hover { text-decoration-thickness: 2px; }
}
