/* ============================================================
   TAVEO — Legal pages (Mentions, Confidentialité, Conditions)
   Editorial / long-form layout. Inherits tokens from landing-v3.css
   (nav, footer, btn, eyebrow, wrap, .h2). This file only defines
   the article shell. Load AFTER landing-v3.css.
   ============================================================ */

/* ---------- Article shell ---------- */
.legal-main {
  padding: clamp(120px, 16vh, 180px) 0 clamp(80px, 10vh, 140px);
  background:
    radial-gradient(60% 50% at 50% 0%, var(--blue-tint) 0%, transparent 65%),
    linear-gradient(180deg, var(--blue-tint-2), #fff 40%);
}

.legal-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.legal-article {
  grid-column: 2;
  max-width: 760px;
  width: 100%;
  margin-inline: auto;
}

/* ---------- Header ---------- */
.legal-head {
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 64px);
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-ink);
}
.legal-eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.legal-title {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: clamp(48px, 7.4vw, 80px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--ink);
  margin-top: 22px;
  text-wrap: balance;
}

.legal-intro {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 26px;
  max-width: 56ch;
  text-wrap: pretty;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
}
.legal-meta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.legal-meta strong {
  color: var(--ink-2);
  font-weight: 600;
}

/* ---------- Body typography ---------- */
.legal-body {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
}

.legal-body > section {
  margin-top: clamp(48px, 6vw, 72px);
  scroll-margin-top: 100px;
}
.legal-body > section:first-child { margin-top: 0; }

.legal-body h2 {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: balance;
}

.legal-body h2 .legal-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--blue);
  vertical-align: super;
  margin-right: 10px;
  position: relative;
  top: -.45em;
}

.legal-body p {
  max-width: 68ch;
  margin-top: 16px;
}
.legal-body p:first-child { margin-top: 0; }

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

.legal-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.legal-body a:hover {
  color: var(--blue-ink);
  text-decoration-thickness: 2px;
}
.legal-body a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.legal-body ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  max-width: 68ch;
  display: grid;
  gap: 10px;
}
.legal-body ul li {
  position: relative;
  padding-left: 24px;
}
.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .85;
}

/* Highlighted lead section (first block — "Éditeur du site",
   "Responsable du traitement", "Périmètre" in source) */
.legal-body section.lead-block {
  padding: clamp(28px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 16px;
  margin-bottom: 0;
}
.legal-body section.lead-block h2 {
  margin-bottom: 16px;
}
.legal-body section.lead-block p {
  max-width: 60ch;
}

/* ---------- Table of contents (sticky, desktop only) ---------- */
.legal-toc {
  grid-column: 1;
  position: sticky;
  top: 110px;
  align-self: start;
  padding-top: 8px;
}
.legal-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
  counter-reset: toc;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--mute);
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -14px;
  transition: color .15s ease, border-color .15s ease;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0;
}
.legal-toc a:hover {
  color: var(--ink);
  border-left-color: var(--blue);
}
.legal-toc a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- End-of-article footer (related legal links) ---------- */
.legal-end {
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.legal-end-label {
  font-size: 13px;
  color: var(--mute);
}
.legal-end-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.legal-end-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.legal-end-links a:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-tint-2);
}
.legal-end-links a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .legal-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-article { grid-column: 1; }
  .legal-toc {
    display: none;
  }
}

@media (max-width: 600px) {
  .legal-main { padding-top: clamp(100px, 14vh, 140px); }
  .legal-body { font-size: 16px; line-height: 1.7; }
  .legal-end { flex-direction: column; align-items: flex-start; }
  .legal-body section.lead-block { padding: 22px; }
}

/* ---------- Accessibility / motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .legal-body a, .legal-toc a, .legal-end-links a { transition: none; }
}
</content>
</invoke>