/* Pages légales d'Echelia */
@import url("/fonts/fonts.css");
:root {
  --bg: #05060f; --surface: #0e1030; --line: #262a5c; --text: #e8eaff; --muted: #a9acd6;
  --cyan: #5fe7ff; --violet: #b98cff; --gold: #e9c873;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  background-image: radial-gradient(1200px 600px at 15% -10%, rgba(58,91,255,.22), transparent 60%), radial-gradient(900px 500px at 110% 10%, rgba(177,77,255,.16), transparent 60%);
  background-attachment: fixed;
  font: 16px/1.65 "DM Sans", "Segoe UI", system-ui, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 64px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 22px; border-bottom: 1px solid var(--line); }
header.top a.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 20px/1 "Bricolage Grotesque", sans-serif; }
header.top img { width: 36px; height: 36px; border-radius: 10px; }
header.top a.back { color: var(--cyan); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
h1 { font: 800 clamp(28px, 6vw, 40px)/1.1 "Bricolage Grotesque", sans-serif; margin: 28px 0 6px; letter-spacing: -.01em; }
.meta { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
h2 { font: 700 21px/1.25 "Bricolage Grotesque", sans-serif; margin: 34px 0 8px; color: #fff; scroll-margin-top: 16px; }
h3 { font: 700 17px/1.3 "DM Sans", sans-serif; margin: 20px 0 6px; color: var(--gold); }
p, li { color: var(--text); }
p { margin: 8px 0; }
ul, ol { padding-left: 22px; margin: 8px 0; }
li { margin: 4px 0; }
a { color: var(--cyan); text-underline-offset: 3px; }
strong { color: #fff; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; margin: 18px 0 8px; }
.toc b { display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; columns: 2 240px; column-gap: 24px; }
.toc li { margin: 2px 0; break-inside: avoid; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; margin: 12px 0; }
.table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.table td:nth-child(2) { white-space: nowrap; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
mark.todo { background: #ffe066; color: #1a1400; padding: 1px 5px; border-radius: 5px; font-weight: 700; }
.form { background: #fff; color: #111; border-radius: 14px; padding: 18px; }
.form p, .form li { color: #111; }
.form .line { border-bottom: 1px dotted #777; min-height: 1.6em; }
footer { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: var(--muted); }
@media print {
  body { background: #fff; color: #000; }
  p, li, strong, h2 { color: #000; }
  a { color: #000; }
  header.top a.back, .toc, footer { display: none; }
  .card { border-color: #ccc; background: #fff; }
}
@media (max-width: 600px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 10px 0; }
  .table td { border: 0; padding: 2px 0; }
  .table td:first-child { font-weight: 700; color: #fff; font-size: 16px; }
  .table td:nth-child(2) { white-space: normal; color: var(--gold); }
  .table td:nth-child(3) { color: var(--muted); }
}
