/* Pages légales de Champicorp JDR : styles autonomes, sans police ni ressource externe */
:root {
  --bg: #05070c;
  --card: #0d111c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --gold: #fbbf24;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

nav a.current { color: var(--text); text-decoration: none; font-weight: 600; }

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

h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; margin: 0 0 0.4rem; }
h2 { font-size: 1.3rem; color: var(--gold); margin: 2.2rem 0 0.6rem; }

.updated { color: var(--muted); font-family: system-ui, sans-serif; font-size: 0.9rem; margin-top: 0; }

.notice {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0.6rem;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
}

table { width: 100%; border-collapse: collapse; font-family: system-ui, sans-serif; font-size: 0.92rem; margin: 0.8rem 0; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); }
th { color: var(--gold); font-weight: 600; }

code { font-family: ui-monospace, Consolas, monospace; font-size: 0.88em; color: var(--muted); }

footer { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--border); color: var(--muted); font-family: system-ui, sans-serif; font-size: 0.85rem; }

@media (max-width: 600px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: none; padding: 0.2rem 0; }
  tr { border-bottom: 1px solid var(--border); padding: 0.6rem 0; }
}

/* Sur petit écran, chaque valeur de tableau rappelle sa colonne */
@media (max-width: 600px) {
  td:first-child { font-weight: 600; }
  td[data-label]::before { content: attr(data-label) " : "; color: var(--gold); font-weight: 600; }
}
