.shop-hero .legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.shop-hero .legal-updated svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.shop-hero p.legal-lead {
  max-width: 60ch;
  margin-inline: auto;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  max-width: 1120px;
  margin-inline: auto;
}

/* Sommaire */
.legal-toc {
  position: sticky;
  top: calc(80px + env(safe-area-inset-top, 0px));
}
.legal-toc-details {
  border: 0;
}
.legal-toc-summary {
  display: none;
}
.legal-toc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc-nav a {
  display: block;
  padding: 7px 14px;
  font-size: 0.84rem;
  color: var(--muted);
  border-left: 2px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.legal-toc-nav a:hover {
  color: var(--ink);
}
.legal-toc-nav a.active {
  color: var(--blue);
  border-left-color: var(--blue);
  font-weight: 500;
}

/* Document */
.legal-doc {
  max-width: 72ch;
}
.legal-doc section {
  scroll-margin-top: 96px;
  margin-bottom: clamp(30px, 4vw, 46px);
}
.legal-doc h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.2;
}
.legal-doc h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.5em 0 0.4em;
}
.legal-doc p,
.legal-doc li {
  color: #2b3a55;
  line-height: 1.78;
  font-size: 0.98rem;
}
.legal-doc p {
  margin: 0 0 1em;
}
.legal-doc ul {
  padding-left: 1.25em;
  margin: 0.4em 0 1.2em;
}
.legal-doc li {
  margin-bottom: 0.45em;
}
.legal-doc a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-doc strong {
  color: var(--ink);
}

.legal-callout {
  background: var(--band);
  border-left: 3px solid var(--blue);
  padding: 18px 24px;
  margin: 1.2em 0;
}
.legal-callout p {
  margin: 0.25em 0;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.legal-actions a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 26px;
  transition: 0.2s;
  text-decoration: none;
}
.legal-actions a svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.legal-actions .btn-primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}
.legal-actions .btn-primary:hover {
  background: var(--blue-ink);
  border-color: var(--blue-ink);
  transform: translateY(-2px);
}
.legal-actions .btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.legal-actions .btn-outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .legal-toc {
    position: static;
  }
  .legal-toc-details {
    border: 1px solid var(--line);
  }
  .legal-toc-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 14px 18px;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    list-style: none;
  }
  .legal-toc-summary::-webkit-details-marker {
    display: none;
  }
  .legal-toc-summary svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    transition: transform 0.25s ease;
  }
  .legal-toc-details[open] .legal-toc-summary svg {
    transform: rotate(180deg);
  }
  .legal-toc-nav {
    padding: 6px 10px 14px;
  }
}
