/* Pages légales (CGU, politique de confidentialité) : même univers visuel que la landing. */
@font-face { font-family: 'Quicksand'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/quicksand-500.woff2) format('woff2'); }
@font-face { font-family: 'Quicksand'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/quicksand-600.woff2) format('woff2'); }
@font-face { font-family: 'Quicksand'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/quicksand-700.woff2) format('woff2'); }

:root {
  --bg: #FFFFFF;
  --surface-2: #F1F5F9;
  --ink: #0B1220;
  --ink-soft: #475569;
  --ink-faint: #64748B;
  --line: #E2E8F0;
  --accent: #8F6511;
  --accent-strong: #6E4D0D;
  --accent-on: #FFFFFF;
  --accent-soft: #FAF0DA;
  --accent-tint: #EDD49C;
  --font: 'Quicksand', ui-rounded, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Courbe : la section remonte sur la précédente, comme sur la landing */
.domed { position: relative; background: var(--dome); }
.domed::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(18px, 3vw, 44px);
  background: var(--dome);
  clip-path: ellipse(72% 100% at 50% 100%);
  pointer-events: none;
}

/* En-tête */
.legal-hero {
  background: var(--accent-tint);
  padding: 0 24px clamp(64px, 9vw, 112px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 0;
}
.logo { line-height: 0; }
.logo img { height: 40px; width: auto; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); }
.btn svg { width: 18px; height: 18px; }
.legal-title {
  max-width: 820px;
  margin: 0 auto;
  padding-top: clamp(32px, 6vw, 72px);
  text-align: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.legal-title h1 {
  margin-top: 22px;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.legal-title p {
  max-width: 52ch;
  margin: 20px auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 600;
  color: var(--accent-strong);
}

/* Corps : sommaire collant à gauche, texte à droite */
.legal-body { --dome: var(--bg); padding: clamp(48px, 7vw, 88px) 24px clamp(72px, 9vw, 120px); }
.legal-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  max-width: 1160px;
  margin: 0 auto;
  align-items: start;
}
.toc {
  position: sticky;
  top: 24px;
  padding: 24px;
  border-radius: 28px;
  background: var(--accent-soft);
}
.toc h2 {
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.toc a::before { content: counter(toc); flex: 0 0 1.4em; font-weight: 700; color: var(--accent); }
.toc a:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }

.content { max-width: 720px; }
.content section { scroll-margin-top: 24px; }
.content section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.content h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.content h2 .num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1rem;
  rotate: -5deg;
  translate: 0 -2px;
}
.content section:nth-child(even) h2 .num { rotate: 6deg; }
.content h3 { margin: 28px 0 8px; font-size: 1.1rem; font-weight: 700; color: var(--accent-strong); }
.content p, .content li { color: var(--ink-soft); font-size: 1rem; }
.content p { margin: 0 0 14px; }
.content strong { color: var(--ink); font-weight: 700; }
.content ol { margin: 0 0 14px; padding-left: 26px; display: grid; gap: 10px; }
.content ol li::marker { color: var(--accent-strong); font-weight: 700; }
.content ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
.content ul li { position: relative; padding-left: 26px; }
.content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-tint);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.content code { overflow-wrap: anywhere; font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }

.callout {
  margin: 0 0 18px;
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent-strong) !important;
  font-weight: 600;
}

.table-wrap { overflow-x: auto; margin: 0 0 14px; border-radius: 20px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; color: var(--ink); }
td { color: var(--ink-soft); border-top: 1px solid var(--line); }

.contact-card {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--surface-2);
}
.contact-card p { margin: 0; }

/* Pied de page */
footer {
  --dome: var(--ink);
  padding: clamp(56px, 7vw, 88px) 24px 40px;
  color: #94A3B8;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  max-width: 1160px;
  margin: 0 auto;
}
footer .logo img { height: 34px; }
.footer-tagline { margin: 14px 0 0; max-width: 34ch; font-size: 1.05rem; font-weight: 600; color: #E2E8F0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; font-weight: 600; }
.footer-links a { color: var(--accent-tint); text-decoration: none; transition: color 0.25s ease; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: #FFFFFF; }
.footer-legal { max-width: 1160px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(148, 163, 184, 0.2); font-size: 0.82rem; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 520px) {
  .logo img { height: 34px; }
  .btn { height: 40px; padding: 0 16px; font-size: 0.88rem; }
  .chip { font-size: 0.7rem; }
  .content h2 .num { width: 34px; height: 34px; border-radius: 12px; font-size: 0.9rem; }
}
