/* Pages légales : statiques (lisibles sans JavaScript), au style du jeu. */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --muted: #3d3d3d;
  --yellow: #ffd84d;
  color-scheme: light;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--yellow);
}

body {
  margin: 0;
  padding: 24px 16px 48px;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 28px 24px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.back img {
  width: 36px;
  height: 36px;
}

h1 {
  margin: 0 0 8px;
  font-family: 'Arial Black', system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1.1;
}

h2 {
  margin: 28px 0 6px;
  font-size: 1.2rem;
}

p,
ul {
  margin: 0 0 10px;
}

.table-wrap {
  margin: 0 0 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.45;
}

th,
td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1.5px solid var(--ink);
}

th {
  background: var(--yellow);
}

/* Écrans étroits : une fiche par ligne, chaque cellule précédée de son intitulé. */
@media (max-width: 600px) {
  thead {
    display: none;
  }

  tr,
  td {
    display: block;
  }

  tr {
    padding: 6px 0;
    border-bottom: 1.5px solid var(--ink);
  }

  td {
    padding: 4px 0;
    border: 0;
  }

  td::before {
    content: attr(data-label) ' : ';
    font-weight: 700;
  }

  td:first-child {
    font-weight: 700;
  }

  td:first-child::before {
    content: '';
  }
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

a {
  color: var(--ink);
}

@media (min-width: 768px) {
  body {
    padding-top: 48px;
  }

  main {
    padding: 40px 48px;
  }
}
