/* ═══════════════════════════════════════════════════════════════════════════
   Physio Pacing — Feuille de style commune aux pages légales
   (privacy, terms, mentions-legales, versions FR + EN)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --green-deep:   #0E2F23;
  --green-dark:   #143A2A;
  --green-mid:    #1F5B40;
  --green-bright: #7CCF4A;
  --lime:         #C8E84C;
  --yellow:       #FFD23F;
  --cream:        #F4F6EF;
  --white:        #FFFFFF;
  --text-soft:    rgba(244, 246, 239, 0.75);
  --text-mute:    rgba(244, 246, 239, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--green-deep);
  color: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(124, 207, 74, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 110%, rgba(255, 210, 63, 0.07), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.wrap { position: relative; z-index: 1; }

/* ─── Header ────────────────────────────────────────────────────────────── */
header.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  max-width: 900px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand span { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.lang-toggle {
  display: flex;
  gap: 4px;
  background: rgba(244, 246, 239, 0.08);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(244, 246, 239, 0.12);
}
.lang-toggle a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background .15s, color .15s;
}
.lang-toggle a.active { background: var(--lime); color: var(--green-deep); }
.lang-toggle a:hover:not(.active) { color: var(--cream); }

/* ─── Layout principal ──────────────────────────────────────────────────── */
main {
  max-width: 780px;
  margin: 20px auto 80px;
  padding: 40px clamp(20px, 5vw, 48px);
  background: rgba(20, 58, 42, 0.35);
  border: 1px solid rgba(244, 246, 239, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(8px);
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.effective-date {
  color: var(--text-mute);
  font-size: 14px;
  margin-bottom: 40px;
}

h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--lime);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--cream);
  margin-top: 22px;
  margin-bottom: 10px;
}

p, li { color: var(--text-soft); }
p { margin-bottom: 14px; }

ul, ol { padding-left: 24px; margin-bottom: 18px; }
li { margin-bottom: 6px; }

strong { color: var(--cream); font-weight: 700; }
em { color: var(--cream); }

a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--green-bright); }

code {
  font-family: 'SF Mono', ui-monospace, monospace;
  background: rgba(244, 246, 239, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--lime);
}

/* Encadré avertissement / important (utilisé notamment pour l'avertissement médical) */
.callout {
  margin: 22px 0;
  padding: 18px 22px;
  background: rgba(255, 210, 63, 0.08);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
}
.callout.warning {
  background: rgba(239, 83, 80, 0.10);
  border-left-color: #EF5350;
}
.callout p { color: var(--cream); }
.callout p:last-child { margin-bottom: 0; }

/* Table des matières */
.toc {
  margin: 24px 0 36px;
  padding: 18px 22px;
  background: rgba(244, 246, 239, 0.04);
  border: 1px solid rgba(244, 246, 239, 0.08);
  border-radius: 12px;
  font-size: 14px;
}
.toc-title { font-weight: 700; color: var(--cream); margin-bottom: 8px; }
.toc ol { padding-left: 20px; margin-bottom: 0; }
.toc li { margin-bottom: 3px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Footer */
footer.legal-footer {
  max-width: 780px;
  margin: 0 auto 40px;
  padding: 24px clamp(20px, 5vw, 48px);
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}
footer.legal-footer a { color: var(--text-soft); margin: 0 8px; }
