/* ============================================================
   Auto Plus 01 — pages annexes : mentions légales, erreur 404
   ============================================================ */

/* ---------- Mentions légales (.legal) ---------- */
.legal { padding-block: 40px 96px; }
.legal__inner {
  max-width: calc(760px + 2 * var(--gutter));
  display: flex; flex-direction: column; gap: 48px;
}
.legal__head { display: flex; flex-direction: column; gap: 16px; }
.legal__head .lead { max-width: 640px; }
.legal__update { font-size: 13px; color: var(--text-muted); }

.legal__section {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.legal__section h2 { margin-bottom: 4px; }
.legal__section p { font-size: 16px; line-height: 1.6; color: var(--text-dim); }
.legal__section p strong { color: var(--text); }
.legal__section a:not(.link-arrow) {
  color: var(--accent-soft); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 107, 91, 0.45);
}
.legal__section a:not(.link-arrow):hover { color: var(--text); text-decoration-color: currentColor; }
.legal__section .link-arrow { text-decoration: none; }

.legal__list {
  list-style: disc; padding-left: 22px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 16px; line-height: 1.6; color: var(--text-dim);
}
.legal__list li::marker { color: var(--accent); }
/* Mesure d'audience : le visiteur voit si ses visites sont comptées et peut changer d'avis (js/mesure.js) */
.legal__mesure { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.legal__list strong { color: var(--text); font-weight: 700; }

@media (max-width: 860px) {
  .legal { padding-block: 24px 64px; }
  .legal__inner { gap: 36px; }
  .legal__section { padding-top: 28px; gap: 14px; }
}
@media (max-width: 640px) {
  .legal { padding-block: 20px 48px; }
  .legal__section p, .legal__list { font-size: 15px; }
  .legal__list { padding-left: 18px; }
}

/* ---------- Page 404 (.page-404) ---------- */
.page-404 {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  padding-block: 64px 96px;
}
.page-404__spot {
  left: 50%; top: 50%; width: 960px; height: 560px;
  transform: translate(-50%, -50%);
}
.page-404__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.page-404__car {
  width: min(340px, 70vw); height: auto; margin-bottom: 8px;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.5));
}
.page-404 .lead { max-width: 520px; }
.page-404__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.page-404__help { font-size: 14px; color: var(--text-dim); margin-top: 8px; }
.page-404__help a { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.page-404__help a:hover { color: var(--accent-soft); }

@media (max-width: 860px) {
  .page-404 { min-height: 0; padding-block: 48px 64px; }
  .page-404__spot { width: 700px; height: 420px; }
}
@media (max-width: 640px) {
  .page-404 { padding-block: 40px 56px; }
  .page-404__inner { gap: 16px; }
  .page-404__ctas { flex-direction: column; width: 100%; gap: 10px; }
  .page-404__ctas .btn { width: 100%; min-height: 54px; }
}
