/* Mise en forme des pages légales des produits Bhagya Group.
   Complément de styles.css : mêmes couleurs, même police, même en-tête et
   même pied de page que le reste du site. */

.legal-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  font-size: 14px;
  font-weight: 700;
}

.legal-nav a {
  position: relative;
  padding: 10px 0;
  white-space: nowrap;
}

.legal-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--orange);
  border-radius: 999px;
  opacity: 0;
}

.legal-nav a:hover::after,
.legal-nav a.active::after {
  opacity: 1;
}

.legal-hero {
  padding: 46px 0 42px;
  color: var(--white);
  background: radial-gradient(circle at 18% 0, #0b3768, var(--navy) 62%);
}

.legal-hero-inner {
  width: min(820px, 86vw);
  margin: 0 auto;
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.legal-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.legal-content {
  width: min(820px, 86vw);
  padding: 30px 0 6px;
  margin: 0 auto;
}

.legal-content h2 {
  margin: 32px 0 12px;
  color: var(--text);
  font-size: 20px;
}

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

.legal-content h2::after {
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 12px;
  content: "";
  background: var(--orange);
}

.legal-content p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-content strong {
  color: var(--text);
}

.legal-content a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-signature {
  width: min(820px, 86vw);
  padding: 20px 22px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-signature a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-cross {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(820px, 86vw);
  padding-top: 26px;
  margin: 26px auto 48px;
  border-top: 1px solid var(--line);
}

.legal-cross a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(7, 27, 58, 0.07);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.legal-cross a:hover {
  color: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.legal-cross svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-footer-grid {
  grid-template-columns: 1.3fr 1fr 1.3fr;
}

@media (max-width: 1060px) {
  .legal-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Pas de menu déroulant ici : sous cette largeur, la navigation passe par les
   boutons en bas de page et par le pied de page. */
@media (max-width: 980px) {
  .legal-nav {
    display: none;
  }
}

/* Ces deux pages sont souvent imprimées ou exportées en PDF (dossiers de
   soumission aux stores). On ne garde que le texte, en noir sur blanc. */
@media print {
  .site-header,
  .legal-cross,
  .footer {
    display: none;
  }

  .legal-hero {
    padding: 0 0 18px;
    color: #000;
    background: none;
    border-bottom: 2px solid #000;
  }

  .legal-kicker,
  .legal-meta {
    color: #000;
  }

  .legal-hero-inner,
  .legal-content,
  .legal-signature {
    width: auto;
    max-width: none;
    margin: 0;
  }

  .legal-content h2,
  .legal-content p,
  .legal-content a,
  .legal-signature,
  .legal-signature a {
    color: #000;
  }

  .legal-content h2 {
    page-break-after: avoid;
  }

  .legal-content p {
    orphans: 3;
    widows: 3;
  }

  .legal-signature {
    padding: 12px 0 0;
    background: none;
    border: 0;
    border-top: 1px solid #000;
    border-radius: 0;
  }

  /* Une URL en clair vaut mieux qu'un lien mort sur papier. */
  .legal-content a[href^="mailto:"]::after,
  .legal-signature a[href^="mailto:"]::after {
    content: "";
  }
}

@media (max-width: 760px) {
  .legal-footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-cross a {
    width: 100%;
    justify-content: center;
  }
}
