/* =============================================================================
   OMYRIA — PAGES LÉGALES (mentions légales & confidentialité)
   Préfixe unique : legal-
   Pages autonomes, sobres et lisibles. Conteneur étroit, bon interlignage.
   Aucun token redéfini, aucune valeur de couleur/espacement en dur :
   tout passe par les variables de design-system.css.
   ============================================================================= */

/* ---- Corps de page : fond clair, padding sous le header fixe ---- */
.legal-page {
  background: var(--bg);
  color: var(--body);
}

/* ---- En-tête minimal (logo + retour accueil) ---- */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--header-h);
  padding-inline: var(--gutter);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.legal-brand__mark {
  width: 34px;
  height: 34px;
  color: var(--navy-800);   /* le Z reprend currentColor */
  flex: none;
}
.legal-brand__name {
  font-size: 1.18rem;
  line-height: 1;
}
.legal-brand__dot { color: var(--cyan-deep); }   /* point signature */

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--body);
  padding: .55rem .9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  transition: border-color var(--t) var(--ease-out),
              color var(--t) var(--ease-out),
              background-color var(--t) var(--ease-out);
}
.legal-back:hover {
  border-color: var(--cyan);
  color: var(--cyan-deep);
  background: var(--bg-mist);
}
.legal-back svg { transition: transform var(--t) var(--ease-spring); }
.legal-back:hover svg { transform: translateX(-3px); }

/* ---- Hero de page (titre + filet souffle) ---- */
.legal-hero {
  position: relative;
  padding-block: clamp(2.75rem, 2rem + 4vw, 5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  overflow: hidden;
}
.legal-hero::before {           /* halo cyan diffus (souffle Zephyr) */
  content: "";
  position: absolute;
  inset: -40% 60% auto auto;
  width: 50vw;
  height: 50vw;
  max-width: 540px;
  max-height: 540px;
  background: radial-gradient(circle at 70% 40%, rgba(79, 195, 217, .18), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.legal-hero > * { position: relative; z-index: 1; }

.legal-eyebrow {                /* sur-titre cyan dédié (variante locale) */
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: var(--sp-4);
}
.legal-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-cyan);
  border-radius: 2px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.legal-meta {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ---- Contenu juridique ---- */
.legal-body {
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) var(--section-y);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--body);
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.legal-body h2:first-of-type { margin-top: var(--sp-5); }

.legal-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.legal-body p { margin-top: var(--sp-4); }
.legal-body p:first-child { margin-top: 0; }

.legal-body ul {
  margin-top: var(--sp-4);
  padding-left: 0;
  list-style: none;
}
.legal-body li {
  position: relative;
  padding-left: var(--sp-5);
  margin-top: var(--sp-3);
}
.legal-body li::before {        /* puce cyan « point souffle » */
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--grad-cyan);
}

.legal-body a {
  color: var(--cyan-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(79, 195, 217, .4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t) var(--ease-out);
}
.legal-body a:hover { text-decoration-color: var(--cyan); }

.legal-body strong { color: var(--ink); font-weight: 700; }

/* Placeholders à compléter (entre crochets) — rendus visibles */
.legal-ph {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--cyan-ink);
  background: rgba(79, 195, 217, .10);
  border: 1px dashed rgba(79, 195, 217, .42);
  border-radius: var(--r-xs);
  padding: 0 .35em;
  white-space: nowrap;
}

/* Encart « Made in France » / synthèse */
.legal-callout {
  margin-top: var(--sp-6);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.legal-callout p { margin-top: 0; }
.legal-callout p + p { margin-top: var(--sp-3); }
.legal-callout__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--bg-mist);
  color: var(--cyan-deep);
}

/* Tableau récapitulatif (données personnelles) */
.legal-table-wrap { overflow-x: auto; margin-top: var(--sp-4); }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 520px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
}
.legal-table tr:last-child td { border-bottom: 0; }

/* ---- Pied de page minimal ---- */
.legal-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-6);
  background: var(--bg-soft);
}
.legal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.legal-footer p { font-size: var(--fs-sm); color: var(--muted); }
.legal-footer nav {
  display: inline-flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.legal-footer a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--body);
  transition: color var(--t) var(--ease-out);
}
.legal-footer a:hover { color: var(--cyan-deep); }
.legal-footer__fr {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .legal-brand__name { font-size: 1.05rem; }
  .legal-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .legal-back span { display: none; }   /* garde l'icône seule sur très petit écran */
  .legal-back { padding: .55rem .7rem; }
  .legal-callout { flex-direction: column; }
}
