/* Pages légales (mentions-legales.html, confidentialite.html) : une colonne de lecture,
   les variables et le logo de la page d'accueil (tokens.css, base.css, components.css). */
.legal { min-height: 100vh; display: flex; flex-direction: column; }

.legal__bar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.legal__bar-in {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.legal__bar .logo { padding-block: 7px; border-radius: 8px; }
.legal__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.legal__main {
  flex: 1;
  width: 100%;
  max-width: calc(46rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(48px, 7cqw, 96px) var(--gutter) var(--section-pad);
}
.legal__main h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
  text-wrap: balance;
}
.legal__date { margin: var(--space-4) 0 0; color: var(--muted); font-size: var(--fs-small); }
.legal__main h2 {
  margin: var(--space-7) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.legal__main p,
.legal__main ul { margin: var(--space-3) 0 0; max-width: var(--measure); }
.legal__main ul { padding-left: 1.2em; }
.legal__main li + li { margin-top: var(--space-1); }
.legal__main a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.legal__todo { background: var(--hl); border-radius: 4px; padding: 0 4px; }
/* Paramètre ou adresse cités dans le texte : même police, jamais coupés en fin de ligne. */
.legal__main code { font: inherit; white-space: nowrap; }

.legal__foot {
  padding: var(--space-6) var(--gutter);
  background: var(--deep);
  color: var(--on2);
  font-size: var(--fs-small);
}
.legal__foot-in {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
}
.legal__foot a { color: var(--on); display: inline-flex; align-items: center; min-height: 44px; }
.legal__foot a:hover { color: var(--on); text-decoration: underline; }
.legal__foot :focus-visible { outline-color: var(--hld); }
