/* SoundCaps — pages légales. Aucune ressource externe (pas de Google Fonts) :
   une page légale ne doit pas elle-même envoyer l'IP du visiteur à un tiers. */

:root {
  --bg: #070C14;
  --bg2: #0D1421;
  --card: #111D30;
  --teal: #00E5C8;
  --white: #F0F4F8;
  --muted: #7C97A6;
  --line: rgba(0, 229, 200, 0.18);
  --gold: #F59E0B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 56px 24px 96px; }

header.head { border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 40px; }

.back {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 24px;
}
.back:hover { color: var(--teal); }

h1 {
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.sub { color: var(--muted); font-size: 14px; }

h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
  padding-top: 8px;
  color: var(--teal);
}

h3 { font-size: 16px; font-weight: 700; margin: 26px 0 8px; }

p { margin-bottom: 14px; }

ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 8px; }

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

strong { font-weight: 700; }

code {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.callout {
  background: var(--card);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  margin: 22px 0;
}
.callout.warn { border-left-color: var(--gold); }
.callout p:last-child { margin-bottom: 0; }

.tldr {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 8px;
}
.tldr h2 { margin-top: 0; }
.tldr ul { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 18px 0 24px; }

table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; }

th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

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

.todo {
  background: rgba(245, 158, 11, 0.16);
  border: 1px dashed var(--gold);
  border-radius: 4px;
  padding: 1px 7px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95em;
}

footer.foot {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
}
footer.foot a { color: var(--muted); }
footer.foot a:hover { color: var(--teal); }

@media (max-width: 600px) {
  .wrap { padding: 36px 18px 72px; }
  h2 { margin-top: 38px; }
}

/* ─── Documents à sections numérotées (CGU / Terms) ───────────────────── */

.toc {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
  margin-bottom: 8px;
}

.toc-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 28px;
}

.toc li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 0;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.55;
  flex-shrink: 0;
}

.toc a { font-size: 14px; color: var(--white); text-decoration: none; }
.toc a:hover { color: var(--teal); }

.section { scroll-margin-top: 24px; }

.section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section h2 .num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.5;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .toc ol { grid-template-columns: 1fr; }
}
