/* Brainrot Card Legends — pages légales. Une seule feuille, aucune ressource externe. */

:root {
  color-scheme: light dark;
  --fond: #fbfaf7;
  --surface: #ffffff;
  --texte: #1c1a18;
  --doux: #5b5650;
  --trait: #e2ddd5;
  --lien: #1d5bb8;
  --lien-vu: #5a3ea8;
  --encadre-fond: #fff6dc;
  --encadre-trait: #d9a92e;
  --completer-fond: #ffe08a;
  --completer-texte: #3d2e00;
  --verifier-fond: #d4e6ff;
  --verifier-texte: #0d2b55;
  --valider-fond: #f3d6ff;
  --valider-texte: #43105a;
  --code-fond: #f0ece4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #141312;
    --surface: #1d1b1a;
    --texte: #ebe7e0;
    --doux: #a8a198;
    --trait: #36322e;
    --lien: #8ab8ff;
    --lien-vu: #c2a8ff;
    --encadre-fond: #2e2610;
    --encadre-trait: #a7801c;
    --completer-fond: #5a4500;
    --completer-texte: #ffe9a8;
    --verifier-fond: #10305c;
    --verifier-texte: #d8e8ff;
    --valider-fond: #4a1a5e;
    --valider-texte: #f6dcff;
    --code-fond: #2a2724;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.haut,
main,
.bas {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.haut {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--trait);
}

.marque {
  font-weight: 700;
  color: var(--texte);
  text-decoration: none;
}

.langue {
  font-size: 0.9375rem;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

h1 {
  font-size: 1.875rem;
  line-height: 1.2;
  margin: 0.5rem 0 1.25rem;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--trait);
}

h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 1.75rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin: 0.3rem 0;
}

a {
  color: var(--lien);
  text-underline-offset: 0.15em;
}

a:visited {
  color: var(--lien-vu);
}

a:focus-visible {
  outline: 2px solid var(--lien);
  outline-offset: 2px;
  border-radius: 2px;
}

strong {
  font-weight: 650;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-fond);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

.encadre {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  background: var(--encadre-fond);
  border-left: 4px solid var(--encadre-trait);
  border-radius: 6px;
}

.encadre p:last-child {
  margin-bottom: 0;
}

mark {
  padding: 0.05em 0.25em;
  border-radius: 3px;
  font-weight: 600;
}

mark.a-completer {
  background: var(--completer-fond);
  color: var(--completer-texte);
}

mark.a-verifier {
  background: var(--verifier-fond);
  color: var(--verifier-texte);
}

mark.a-valider {
  background: var(--valider-fond);
  color: var(--valider-texte);
}

.tableau {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--trait);
  border-radius: 6px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  overflow-wrap: normal;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--trait);
  min-width: 8rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  font-weight: 650;
  background: var(--code-fond);
}

.bas {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--trait);
  font-size: 0.9375rem;
  color: var(--doux);
}

.bas ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.bas a[aria-current="page"] {
  color: var(--texte);
  font-weight: 650;
  text-decoration: none;
}

.avis {
  margin: 0.75rem 0 0;
}

.colonnes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 2rem;
}

@media (min-width: 40rem) {
  .colonnes {
    grid-template-columns: 1fr 1fr;
  }
}

.liste-docs {
  list-style: none;
  padding: 0;
}

.liste-docs li {
  margin: 0.5rem 0;
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .haut,
  .bas {
    display: none;
  }

  .tableau {
    overflow: visible;
  }
}
