/* ─────────────────────────────────────────────────────────────
   Pages légales statiques — Vitality Archetype
   Feuille partagée par les 24 pages /{fr|en|es|pt}/{slug}/.
   Charte du site : fond sombre #0A0A0A, accents dorés #EAB308,
   Bebas Neue pour le titre, Geist/DM Sans pour le corps.
   Colonne de lecture 720 px max centrée, mobile-first.
   ───────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #0A0A0A;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Geist", "DM Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

/* Halo doré discret en haut de page, comme les écrans de l'app. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(234, 179, 8, 0.07), transparent 55%);
  pointer-events: none;
}

/* ── Header : retour au site + sélecteur de langue ── */

.legal-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 20px 8px;
}

.legal-back {
  color: #EAB308;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.legal-back::before { content: "← "; }

.legal-back:hover { text-decoration: underline; }

.legal-lang {
  display: flex;
  gap: 4px;
}

.legal-lang a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-family: "Geist Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 7px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.legal-lang a:hover {
  color: #EAB308;
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.08);
}

/* ── Corps ── */

.legal-main {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 20px 72px;
}

.legal-main h1 {
  font-family: "Bebas Neue", "Geist", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0.5em 0 0.7em;
  color: #ffffff;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.14);
}

.legal-main h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2.2em 0 0.6em;
  padding-top: 0.5em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.legal-main h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 1.6em 0 0.5em;
  color: rgba(255, 255, 255, 0.92);
}

.legal-main p { margin: 0 0 1em; }

.legal-main ul {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

.legal-main li { margin: 0 0 0.45em; }

.legal-main li::marker { color: rgba(234, 179, 8, 0.7); }

.legal-main strong { color: #ffffff; font-weight: 700; }

.legal-main a { color: #EAB308; }

.legal-main em { color: rgba(255, 255, 255, 0.5); }

/* ── Tableaux (durées de conservation des traceurs — pages cookies) ── */

.legal-table-wrap { overflow-x: auto; margin: 0 0 1.4em; }

.legal-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-main th,
.legal-main td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-main th {
  color: #ffffff;
  font-weight: 600;
  background: rgba(234, 179, 8, 0.07);
}

.legal-main code {
  font-family: "Geist Mono", "Courier New", monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.85);
}

/* ── FAQ (accordeon + filtre instantane) — pages /{lang}/faq ──
   Les variables --faq-* reprennent le theme legal (les couleurs en dur du
   snippet de reference ne sont que des fallbacks). */
.faq { --faq-border: rgba(255, 255, 255, 0.1); --faq-field: rgba(255, 255, 255, 0.04); --faq-card: rgba(255, 255, 255, 0.02); max-width: 760px; margin: 0 auto; }
.faq-search input { width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 16px; border-radius: 10px; border: 1px solid var(--faq-border, #333); background: var(--faq-field, #111); color: inherit; }
.faq-group { margin: 28px 0; }
.faq-group > h2 { font-size: 14px; font-weight: 600; color: #EAB308; margin: 0 0 10px; border-top: none; padding-top: 0; }
.faq-item { border: 1px solid var(--faq-border, #333); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: var(--faq-card, #0f0f12); }
.faq-item > summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 500; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; opacity: .6; flex: 0 0 auto; }
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-answer { padding: 0 18px 16px; opacity: .85; line-height: 1.6; }
.faq-answer p { margin: 0; }
.faq-answer a { text-decoration: underline; color: inherit; }
.faq-empty { opacity: .7; text-align: center; padding: 20px 0; }
