/* ============================================================
   STENE PROD — legal.css
   ============================================================ */

.legal-hero {
  background: var(--bg-light);
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  padding-top: var(--nav-height);
  border-bottom: 1px solid var(--cream-dark);
}

.legal-hero-logo-bg {
  position: absolute;
  top: 50%; right: -100px;
  width: clamp(340px, 45vw, 680px);
  opacity: .05;
  pointer-events: none;
  z-index: 1;
  filter: grayscale(1) contrast(2);
  transform: translateY(-50%);
}

.legal-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 80px 52px;
  position: relative;
  z-index: 2;
}

.legal-hero-eyebrow {
  font: 700 13px/1 var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
}

.legal-hero h1 {
  font: 700 clamp(36px, 5vw, 72px)/1.05 var(--font-title);
  letter-spacing: -.03em;
  color: var(--text-dark);
  margin: 0;
}

.legal-hero h1 em {
  font-style: italic;
  color: var(--orange);
}

.legal-hero-sub {
  font: 400 13px/1 var(--font-body);
  color: var(--text-mid);
  opacity: .6;
}

@media (max-width: 768px) {
  .legal-hero { min-height: 32vh; }
  .legal-hero-inner { padding: 24px 24px 36px; gap: 16px; }
}

.legal-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* Alerte rouge — incohérence détectée */
.legal-flag {
  background: rgba(220,38,38,.07);
  border: 1.5px solid rgba(220,38,38,.35);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.legal-flag-icon { color:#dc2626; font-size:16px; flex-shrink:0; line-height:1.5; }
.legal-flag-text { font-family:var(--font-body); font-size:13px; color:#b91c1c; line-height:1.7; }
.legal-flag-text strong { color:#991b1b; }

/* h2 article */
.legal-body h2 {
  font-family: var(--font-title);
  font-size: 20px; font-weight: 700;
  color: var(--orange);
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}
.legal-body h2:first-of-type { margin-top: 0; }

/* h3 sous-article */
.legal-body h3 {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  color: var(--orange);
  margin: 24px 0 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.legal-body p {
  font-family: var(--font-body);
  font-size: 14px; color: var(--text-mid);
  line-height: 1.9; margin-bottom: 12px;
  text-align: justify; hyphens: auto;
}
.legal-body ul {
  margin: 0 0 14px 0; padding-left: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.legal-body li {
  font-family: var(--font-body);
  font-size: 14px; color: var(--text-mid); line-height: 1.8;
}
.legal-body a { color: var(--orange); text-decoration: underline; }
.legal-body a:hover { color: var(--orange-light); }
.legal-body strong { color: var(--text-dark); font-weight: 600; }

/* bloc entité */
.legal-entity {
  background: var(--cream); border: 1px solid var(--cream-dark);
  border-radius: 12px; padding: 18px 22px; margin: 14px 0;
}
.legal-entity p { margin-bottom: 3px; font-size: 13px; }
.legal-entity p:last-child { margin-bottom: 0; }

.legal-version {
  font-family: var(--font-body); font-size: 12px;
  color: var(--text-light); font-style: italic; margin-bottom: 32px;
}

@media (max-width: 640px) {
  .legal-hero { height: 40vh; }
  .legal-hero-logo-bg { height: 100%; width: auto; max-width: none; top: 0; right: 0; transform: translateX(50%); }
}
