/* ============================================================
   Legal & FAQ pages — shared shell
   Used by: /faq, /conditions-generales-dutilisation,
            /politique-de-confidentialite (+ language variants),
            and the /legal/* pages.
   Rules mirror the inline <style> blocks used on the existing
   /legal pages, centralised here to avoid per-page duplication.
   Relies on tokens + .wrap / .wrap-medium from global.css.
   ============================================================ */

/* ---- Top nav (logo + back-home) ---- */
.legal-nav { padding: 24px 0; }
.legal-nav .inner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--white);
  padding: 14px 22px;
  border-radius: var(--capsule);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--rule);
}
.legal-nav .logo-mark img { height: 42px; width: auto; }
.legal-nav .home-link {
  font-size: var(--t-small); font-weight: 600;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--capsule);
  transition: background 0.2s;
}
.legal-nav .home-link:hover { background: var(--bg); }

/* ---- Hero ---- */
.legal-hero { padding: 56px 0 32px; }
.legal-hero .breadcrumb {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--ink);
  padding: 8px 16px; border-radius: var(--capsule);
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--rule);
}
.legal-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-top: 24px;
  max-width: 780px;
}
.legal-hero .updated {
  margin-top: 18px;
  font-size: var(--t-small);
  color: var(--ink-3);
}

/* ---- Content card (legal text) ---- */
.legal-content {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 56px 64px;
  margin-bottom: 80px;
  max-width: 780px;
}
.legal-content > .part {
  display: block;
  margin: 48px 0 4px;
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mauve-3);
}
.legal-content > .part:first-child { margin-top: 0; }
.legal-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.2;
  margin-top: 40px;
  margin-bottom: 16px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 12px;
}
.legal-content p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-content ul {
  list-style: none;
  margin-bottom: 14px;
  padding-left: 0;
}
.legal-content ul li {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
}
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 4px;
  border-radius: var(--capsule);
  background: linear-gradient(90deg, var(--mauve-2), var(--mauve-3));
}
.legal-content a {
  color: var(--mauve-2);
  font-weight: 600;
  border-bottom: 1px solid var(--mauve-2);
}
.legal-content a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.legal-content strong { color: var(--ink); font-weight: 600; }

/* ---- FAQ ---- */
.faq-help {
  display: flex; gap: 28px; align-items: center;
  background: linear-gradient(135deg, var(--mauve-1) 0%, var(--mauve-2) 55%, var(--mauve-3) 100%);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 40px;
  margin-bottom: 32px;
  max-width: 780px;
}
.faq-help .txt h2 { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.faq-help .txt p { font-size: var(--t-small); color: rgba(255,255,255,.92); line-height: 1.7; margin-bottom: 8px; }
.faq-help .txt p:last-child { margin-bottom: 0; }
.faq-help .txt a { color: var(--white); font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.6); }
.faq-help .txt a:hover { border-bottom-color: var(--white); }
.faq-help img { width: 120px; height: auto; flex-shrink: 0; }

.faq-section-label {
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  margin: 8px 0 16px;
}

.faq-list { max-width: 780px; margin-bottom: 64px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 24px 28px;
  font-size: 18px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  flex-shrink: 0; width: 26px; height: 26px;
  border-radius: 50%; background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: transform 0.2s, background 0.2s;
}
.faq-item[open] summary .icon { transform: rotate(45deg); background: var(--mauve-1); color: var(--white); }
.faq-item summary .icon svg { width: 14px; height: 14px; }
.faq-item .answer { padding: 0 28px 24px; }
.faq-item .answer p { font-size: 16px; color: var(--ink-2); line-height: 1.75; margin-bottom: 12px; }
.faq-item .answer p:last-child { margin-bottom: 0; }
.faq-item .answer ul { list-style: none; padding-left: 0; margin-bottom: 12px; }
.faq-item .answer ul li {
  font-size: 16px; color: var(--ink-2); line-height: 1.7;
  padding-left: 28px; position: relative; margin-bottom: 8px;
}
.faq-item .answer ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 14px; height: 4px; border-radius: var(--capsule);
  background: linear-gradient(90deg, var(--mauve-2), var(--mauve-3));
}
.faq-item .answer strong { color: var(--ink); font-weight: 600; }

/* ---- Footer (matches existing legal pages) ---- */
.home-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 32px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: 80px;
}
.home-footer .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.home-footer .lo img { height: 42px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 18px; }
.home-footer .legal-note { font-size: var(--t-small); line-height: 1.65; max-width: 540px; }
.home-footer .contact-block-foot { text-align: right; }
.home-footer h5 { font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.home-footer .contact-email { font-size: 20px; font-weight: 700; color: var(--white); text-decoration: none; letter-spacing: -.012em; }
.home-footer .contact-email:hover { color: var(--mauve-1); }
.home-footer .bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: var(--t-meta); color: rgba(255,255,255,0.4); }
.home-footer .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.home-footer .legal-links a { color: rgba(255,255,255,0.55); text-decoration: none; }
.home-footer .legal-links a:hover { color: var(--white); }

@media (max-width: 1024px) {
  .legal-content { padding: 36px 28px; }
  .home-footer .top { grid-template-columns: 1fr; }
  .home-footer .contact-block-foot { text-align: left; }
  .faq-help { flex-direction: column-reverse; text-align: center; }
}
