/* =========================================================
   ACOMPIA — Pages légales V2 (mentions, politique)
   DA cohérente avec la landing : Geist + pierre + indigo
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #FAFAF7;
  --paper: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #3F3F3F;
  --ink-3: #767676;
  --line: #E5E5E0;
  --accent: #4F46E5;
  --dark-bg: #07070F;
  --dark-ink: #C7C8D1;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Geist', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { opacity: 0.7; }

/* === Nav sticky sobre === */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.legal-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.legal-nav-logo:hover { opacity: 1; }
.legal-nav-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
}
.legal-nav-icon svg { width: 100%; height: 100%; }
.legal-nav-wordmark {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.legal-nav-back {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.legal-nav-back:hover {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
  transform: translateX(-2px);
}

/* === Page contenu === */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 32px 96px;
}
.legal-tag {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}
.legal-page h1 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 12px;
  color: var(--ink);
}
.legal-page h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.legal-updated {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 56px;
}
.legal-page h2 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 56px 0 16px;
  color: var(--ink);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.legal-page h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.legal-page h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.legal-page h3 {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--ink);
}
.legal-page p,
.legal-page li {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 14px;
}
.legal-page p:last-child { margin-bottom: 0; }
.legal-page ul {
  padding-left: 22px;
  margin: 8px 0 16px;
}
.legal-page li { margin-bottom: 10px; }
.legal-page strong {
  color: var(--ink);
  font-weight: 600;
}

/* === Footer sobre === */
.legal-footer {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: 40px 32px;
}
.legal-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #767680;
}
.legal-footer-inner a {
  color: #A5B4FC;
  text-decoration: none;
}
.legal-footer-inner a:hover {
  color: white;
  opacity: 1;
}
.legal-footer-sep {
  width: 4px;
  height: 4px;
  background: #2A2A3A;
  border-radius: 999px;
}

/* === Responsive === */
@media (max-width: 700px) {
  .legal-nav { padding: 12px 20px; }
  .legal-nav-wordmark { font-size: 11px; }
  .legal-nav-back { font-size: 10px; padding: 7px 12px; }
  .legal-page { padding: 48px 20px 72px; }
  .legal-page h2 { margin-top: 40px; }
  .legal-page p, .legal-page li { font-size: 14px; }
  .legal-footer { padding: 32px 20px; }
  .legal-footer-inner { font-size: 10px; letter-spacing: 0.10em; }
}
