/* ============================================================
   LEGAL PAGES — Garage des Pyrénées
   Charte alignée sur css/style.css (mêmes variables / fontes)
   ============================================================ */
:root {
  --blue: #14358a;
  --blue-deep: #0e2a72;
  --blue-mid: #1a43a8;
  --blue-soft: #eaf0fb;
  --blue-line: #d6e0f3;
  --ink: #0c1733;
  --ink-2: #38476a;
  --ink-3: #6a7693;
  --bg: #ffffff;
  --bg-2: #f5f7fc;
  --line: #e6e9f2;
  --radius: 14px;
  --t: 0.18s ease;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: 'Manrope', 'Inter', sans-serif; color: var(--ink); letter-spacing: -0.025em; margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---- TOPBAR ---- */
.topbar { background: var(--blue-deep); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 8px 24px; max-width: 1200px; margin: 0 auto; }
.topbar-left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar-item { display: inline-flex; gap: 7px; align-items: center; opacity: .9; }
.topbar-item svg { width: 13px; height: 13px; flex-shrink: 0; }
.topbar-right { display: inline-flex; gap: 14px; align-items: center; }
@media (max-width: 720px) { .topbar-right { display: none; } .topbar-left { font-size: 12px; gap: 10px; } }

/* ---- HEADER (solide, simple) ---- */
.legal-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--line); }
.legal-nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 8px 24px; }
.legal-brand { display: flex; align-items: center; }
.legal-brand img { height: 64px; width: auto; object-fit: contain; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; transition: all var(--t); }
.legal-back:hover { color: var(--blue); border-color: var(--blue-line); background: var(--blue-soft); text-decoration: none; }
.legal-back svg { width: 16px; height: 16px; }

/* ---- HERO LÉGAL ---- */
.legal-hero { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.legal-hero .eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.legal-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; }
.legal-hero p { margin-top: 12px; color: var(--ink-3); font-size: 15px; }

/* ---- CONTENU ---- */
.legal-body { padding: 48px 0 72px; }
.legal-body section { margin-bottom: 40px; }
.legal-body h2 {
  font-size: 22px; font-weight: 800; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-soft); display: flex; align-items: baseline; gap: 10px;
}
.legal-body h2 .n { font-size: 14px; font-weight: 700; color: var(--blue); font-family: 'Inter', sans-serif; }
.legal-body h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.legal-body p { color: var(--ink-2); margin-bottom: 12px; font-size: 15.5px; }
.legal-body ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.legal-body ul li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--ink-2); font-size: 15.5px; }
.legal-body ul li::before {
  content: ''; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--blue); transform: rotate(45deg);
}
.legal-body strong { color: var(--ink); font-weight: 700; }
.legal-body a { font-weight: 600; }

/* Carte d'identité (mentions légales) */
.legal-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 4px 0 8px;
}
.legal-card dl { margin: 0; display: grid; grid-template-columns: 220px 1fr; gap: 10px 18px; }
.legal-card dt { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.legal-card dd { margin: 0; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 600px) {
  .legal-card dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-card dd { margin-bottom: 12px; }
}

.legal-note {
  background: #fffaf0; border: 1px solid #f5d98f; border-radius: 12px;
  padding: 14px 18px; font-size: 14px; color: #92651a; margin: 18px 0;
}
.legal-updated { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* ---- FOOTER ---- */
.foot { background: var(--blue-deep); color: #cdd7ef; padding: 40px 0 24px; margin-top: 0; }
.foot a { color: #cdd7ef; }
.foot a:hover { color: #fff; text-decoration: none; }
.foot-mini { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: center; font-size: 14px; }
.foot-mini a { font-weight: 600; }
.foot-sep { color: rgba(255,255,255,.25); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.6); }
