/* ========================================
   PAGES LÉGALES - STYLES SPÉCIFIQUES
   ======================================== */

/* ========================================
   HERO DE PAGE (version simplifiée)
   ======================================== */
.page-hero-legal {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  margin-top: 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  overflow: hidden;
}

.page-hero-legal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-legal .page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.page-hero-legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero-legal .page-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #e5e7eb;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   SECTION CONTENU LÉGAL
   ======================================== */
.legal-content-section {
  padding: 4rem 0;
  background: var(--white);
}

.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================
   NAVIGATION LATÉRALE
   ======================================== */
.legal-nav {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--gray-light);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--gray-border);
}

.legal-nav h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--orange);
}

.legal-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--gray-text);
  font-size: 0.95rem;
  border-radius: 6px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.legal-nav a:hover {
  background: var(--white);
  color: var(--navy);
  border-left-color: var(--orange);
}

/* ========================================
   ARTICLE LÉGAL
   ======================================== */
.legal-article {
  max-width: 100%;
}

.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gray-border);
}

.legal-section:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
}

.legal-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-section p {
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.legal-section p strong {
  color: var(--navy);
  font-weight: 600;
}

.legal-section a {
  color: var(--orange);
  font-weight: 500;
  text-decoration: underline;
  transition: var(--transition);
}

.legal-section a:hover {
  color: var(--orange-hover);
  text-decoration: none;
}

/* ========================================
   LISTES LÉGALES
   ======================================== */
.legal-list {
  list-style: none;
  margin: 1.25rem 0;
  padding-left: 0;
}

.legal-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--gray-text);
  line-height: 1.7;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

.legal-list li strong {
  color: var(--navy);
  font-weight: 600;
}

.legal-list li a {
  color: var(--orange);
  font-weight: 500;
}

/* ========================================
   DATE DE MISE À JOUR
   ======================================== */
.legal-update {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--gray-light);
  border-radius: 8px;
  border-left: 4px solid var(--orange);
}

.legal-update p {
  margin: 0;
  color: var(--navy);
  font-size: 0.95rem;
}

.legal-update strong {
  color: var(--navy);
  font-weight: 600;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
  }

  .legal-nav {
    max-width: 280px;
  }
}

@media (max-width: 1023px) {
  .legal-nav {
    position: static;
    order: 2;
  }

  .legal-article {
    order: 1;
  }
}

/* ========================================
   SMOOTH SCROLL POUR LES ANCRES
   ======================================== */
html {
  scroll-behavior: smooth;
}

/* Compensation pour le header fixe */
.legal-section[id] {
  scroll-margin-top: 100px;
}
