/* ==========================================================================
   Feuille de style partagée — pages légales (Auto-École Gambetta).
   Reprend les tokens du site principal (Tailwind config) en CSS pur,
   ces pages étant des fichiers statiques hors build Vite/Tailwind.
   ========================================================================== */

:root {
  --ink: #111315;
  --ink-soft: #1b1e22;
  --ink-line: #2a2e33;
  --rouge: #e2001a;
  --rouge-dark: #b00014;
  --vert: #00a651;
  --cloud: #f4f5f7;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

a {
  color: inherit;
}

.shell {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 0 0 rgba(17, 19, 21, 0.06), 0 18px 40px -24px rgba(17, 19, 21, 0.35);
}

.legal-header__bar {
  height: 4px;
  width: 100%;
  background: var(--rouge);
}

.legal-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.legal-header__logo img {
  height: 2.5rem;
  width: auto;
  display: block;
}

.legal-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.legal-nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(17, 19, 21, 0.7);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.legal-nav a:hover {
  background: var(--cloud);
  color: var(--ink);
}

@media (min-width: 1024px) {
  .legal-nav {
    display: flex;
  }
}

.btn-primary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--rouge);
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  box-shadow: 0 20px 60px -20px rgba(226, 0, 26, 0.45);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

/* ---------- Hero / titre de page ---------- */
.legal-hero {
  background: var(--cloud);
  padding: 3rem 0 2.5rem;
}

.legal-hero .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: var(--paper);
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.legal-hero .chip::before {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--rouge);
}

.legal-hero h1 {
  font-size: 1.75rem;
}

.legal-hero p {
  margin-top: 0.75rem;
  color: rgba(17, 19, 21, 0.65);
  max-width: 42rem;
}

@media (min-width: 640px) {
  .legal-hero h1 {
    font-size: 2.5rem;
  }
}

/* ---------- Contenu ---------- */
.legal-content {
  padding: 2.5rem 0 4rem;
}

.legal-content section {
  max-width: 46rem;
}

.legal-content section + section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--cloud);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.legal-content p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
  color: rgba(17, 19, 21, 0.8);
}

.legal-content ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  line-height: 1.65;
  color: rgba(17, 19, 21, 0.8);
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content li::marker {
  color: var(--rouge);
}

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

.legal-content a.inline-link {
  color: var(--rouge);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-card {
  background: var(--cloud);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin: 0 0 0.75rem;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-updated {
  font-size: 0.8125rem;
  color: rgba(17, 19, 21, 0.5);
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.legal-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.legal-footer__bar {
  height: 4px;
  width: 100%;
  background: var(--rouge);
}

.legal-footer .shell {
  padding: 2.5rem 1.25rem;
}

.legal-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.legal-footer nav {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.legal-footer nav a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.legal-footer nav a:hover {
  color: var(--vert);
  text-decoration: underline;
}

.legal-footer__bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
