/* The legal pages: the house look, made for reading. */
:root {
  --bg: #f5ede0; --surface: #fffdf7; --surface-alt: #f0e6d5; --ink: #1e1621; --muted: #5e5366;
  --line-soft: #d8ccb8; --accent: #f0386b;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  background-image: radial-gradient(rgba(30, 22, 33, 0.06) 1.3px, transparent 1.3px); background-size: 22px 22px;
  font: 16.5px/1.6 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.top, main, .foot { width: 100%; max-width: 780px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top { display: flex; align-items: center; gap: 12px; padding-block: 18px 8px; }
.logo { margin: 0 auto; font: 30px "Titan One", "Arial Rounded MT Bold", system-ui, sans-serif; color: var(--ink); text-decoration: none; text-shadow: 3px 3px 0 var(--accent); }
.lang { border: 2px solid var(--ink); border-radius: 10px; padding: 4px 10px; font-weight: 800; color: var(--ink); text-decoration: none; background: var(--surface); box-shadow: 2px 2px 0 var(--ink); }

/* "Back to the game": a real button, at the top and at the bottom. */
.back {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 2px solid var(--ink); border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap;
}
.back:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.back:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.back.big { display: flex; justify-content: center; margin: 22px 0 0; padding: 14px 18px; font-size: 18px; border-width: 3px; border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
.t-en { display: none; }
:root[data-lang="en"] .t-fr { display: none; }
:root[data-lang="en"] .t-en { display: inline; }
@media (max-width: 480px) {
  .logo { font-size: 24px; }
  .top .back { padding: 6px 10px; font-size: 14px; }
}

main { padding-block: 10px 30px; }
article { background: var(--surface); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); padding: clamp(18px, 4vw, 36px); }
h1 { font: 34px/1.1 "Titan One", "Arial Rounded MT Bold", system-ui, sans-serif; margin: 0 0 6px; text-wrap: balance; }
h2 { font: 21px/1.2 "Titan One", "Arial Rounded MT Bold", system-ui, sans-serif; margin: 28px 0 8px; }
p, li { max-width: 68ch; }
.meta { color: var(--muted); font-size: 14px; margin-top: 0; }
.lead { font-size: 18px; }
ul { padding-left: 1.2em; }
li { margin-bottom: 6px; }
a { color: var(--ink); text-underline-offset: 2px; }
.table { overflow-x: auto; margin: 8px 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1.5px solid var(--line-soft); min-width: 150px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
/* Phones: the table becomes one card per line, easier to read than a wide table. */
@media (max-width: 560px) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border: 2px solid var(--line-soft); border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; }
  td { border: 0; padding: 3px 0; min-width: 0; }
  td:nth-child(2)::before { content: "→ "; font-weight: 800; }
  td:nth-child(3) { color: var(--muted); font-weight: 700; font-size: 13.5px; }
}
.foot { text-align: center; color: var(--muted); font-size: 14px; padding-block: 6px 40px; }
.foot a { color: var(--muted); }
