/* ---------- Page confidentialité : bandeau tomate, feuille papier qui monte dessus ---------- */

.page-legal { background: var(--night); }

.legal-hero {
  position: relative; color: var(--white); text-align: center;
  padding: 88px 24px 104px;
  background: var(--tomato);
}
.legal-home {
  position: absolute; top: 18px; left: 20px;
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 700 19px "Baloo 2", sans-serif; color: var(--white);
}
.legal-home img { height: 38px; width: auto; transition: transform .2s ease; }
.legal-home:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .legal-home:hover img { transform: none; } }
.legal-home:focus-visible { outline: 3px solid var(--night); outline-offset: 4px; border-radius: 8px; }

.legal-hero h1 {
  margin: 0 auto; max-width: 16ch;
  font: 800 clamp(36px, 7vw, 64px)/1.02 "Baloo 2", sans-serif; letter-spacing: -.02em; text-wrap: balance;
}
.legal-lede { margin: 16px auto 0; max-width: 34ch; font-size: 21px; font-weight: 700; line-height: 1.4; }

.legal-sheet {
  position: relative; margin-top: -32px;
  background: var(--paper); border-radius: 32px 32px 0 0;
  padding: 44px 24px 72px;
}
.legal-sheet > * { max-width: 680px; margin-inline: auto; }

.legal-sheet .legal-date { max-width: 680px; margin: 0 auto 8px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }

.legal-sheet section { padding-top: 34px; }
.legal-sheet h2 {
  margin: 0 0 8px; color: var(--ink);
  font: 700 clamp(24px, 3.4vw, 28px)/1.2 "Baloo 2", sans-serif; letter-spacing: -.01em;
}
.legal-sheet p { margin: 0 0 12px; max-width: 68ch; }
.legal-sheet a { color: var(--tomato-deep); font-weight: 700; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.legal-sheet a:hover { color: var(--ink); }
.legal-sheet a:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; border-radius: 4px; }

.legal-facts { margin: 18px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(27, 27, 31, .12); }
.legal-facts div {
  display: grid; grid-template-columns: 11rem 1fr; gap: 4px 20px;
  padding: 14px 0; border-bottom: 1px solid rgba(27, 27, 31, .12);
}
.legal-facts dt { font: 700 17px/1.5 "Baloo 2", sans-serif; color: var(--tomato-deep); }
.legal-facts dd { margin: 0; }

.legal-sheet a.legal-game {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 4px;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: var(--white); color: var(--ink); text-decoration: none;
  box-shadow: 0 8px 20px -12px rgba(21, 23, 28, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.legal-sheet a.legal-game:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(21, 23, 28, .45); }
.legal-game img { width: 40px; height: 40px; border-radius: 10px; }

.page-legal .site-footer { margin-inline: 0; }

::selection { background: var(--peach); color: var(--ink); }

@media (max-width: 560px) {
  .legal-hero { padding-top: 80px; }
  .legal-facts div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-home img, .legal-sheet a.legal-game { transition: none; }
}
