/* ---------------------------------------------------------------------------
   Pages légales, 404 et pages de contenu — habillage harmonisé avec l'accueil.
   Chargé après site.css, site-extras.css, typography.css et site-skin.css.
   --------------------------------------------------------------------------- */

.legal-page { background: #fff; }

.legal-hero {
  padding: 40px 0 44px;
  background: var(--cream);
  border-bottom: 1px solid rgba(231, 227, 219, .65);
}

.legal-hero .site-container { max-width: 900px; }

.legal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.legal-breadcrumb a {
  color: var(--ink);
  text-decoration: none;
}

.legal-breadcrumb a:hover { color: var(--red); }

.legal-hero h1 {
  margin: 6px 0 12px;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.legal-updated {
  margin: 0;
  color: #5f584f;
  font-size: .88rem;
}

.legal-body {
  max-width: 900px;
  padding-block: 52px 80px;
}

.legal-notice {
  margin: 0 0 36px;
  padding: 16px 20px;
  background: var(--cream);
  border: 1px solid var(--stone);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  color: #4a453f;
  font-size: .92rem;
  line-height: 1.6;
  box-shadow: var(--shadow-1);
}

.legal-lede {
  color: #2a2a2a;
  font-size: 1.12rem;
  line-height: 1.65;
}

.legal-content h2 {
  margin: 44px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--stone);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-content h3 {
  margin: 30px 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

.legal-content p,
.legal-content li {
  color: #2a2a2a;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content p { margin: 0 0 14px; }

/* Le chapeau et les mentions secondaires gardent leur taille propre malgré la
   règle générique `.legal-content p`. */
.legal-content p.legal-lede {
  color: #2a2a2a;
  font-size: 1.12rem;
  line-height: 1.65;
}

.legal-content p.legal-small {
  color: var(--ink);
  font-size: .85rem;
  line-height: 1.6;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-list li { margin-bottom: 9px; }

.legal-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover { color: var(--black); }

.legal-content code {
  padding: 1px 5px;
  background: var(--cream);
  border: 1px solid var(--stone);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .87em;
}

.legal-content abbr {
  text-decoration: underline dotted;
  cursor: help;
}

.legal-table-wrap {
  margin: 18px 0 28px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--stone);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
}

.legal-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: .92rem;
}

.legal-table th {
  padding: 13px 15px;
  background: var(--cream);
  border-bottom: 1px solid var(--stone);
  color: var(--black);
  font-family: var(--font-brand);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-align: left;
  text-transform: uppercase;
}

.legal-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-faint);
  line-height: 1.55;
  vertical-align: top;
}

.legal-table tbody tr:last-child td { border-bottom: 0; }

.legal-todo {
  display: inline-block;
  padding: 1px 8px;
  border: 1px dashed var(--red);
  border-radius: 999px;
  color: var(--red);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.legal-small {
  color: var(--ink);
  font-size: .85rem;
  line-height: 1.6;
}

.legal-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--stone);
}

.legal-back a {
  color: var(--black);
  font-family: var(--font-brand);
  font-weight: 700;
  text-decoration: none;
}

.legal-back a:hover { color: var(--red); }

.legal-content a:focus-visible,
.legal-back a:focus-visible,
.legal-breadcrumb a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 700px) {
  .legal-hero { padding: 30px 0 34px; }
  .legal-hero h1 { font-size: 2.1rem; }
  .legal-body { padding-block: 36px 60px; }
  .legal-notice { font-size: .88rem; }
  .legal-table { min-width: 520px; }
}
