/* --- MISE EN PAGE DE LA POLITIQUE (2 COLONNES) --- */
.legal-page-wrapper {
  background-color: var(--Contexte);
  padding: 60px 0 100px 0;
  width: 100%;
}

.legal-layout-container {
  display: flex;
  align-items: flex-start;
  gap: 64px; /* Espace équilibré entre la boîte du robot et le texte */
}

/* Boîtier d'habillage beige pour le robot (Figma exact) */
.legal-aside-image-box {
  flex: 0 0 350px; /* Largeur fixe de la boîte */
  background-color: var(--accent-light);
  border-radius: 40px; /* Bords très arrondis comme sur la maquette */
  padding: 30px;
  position: sticky;
  top: 120px; /* Reste visible à l'écran pendant le scroll du texte */
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-robot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Conteneur de textes à droite */
.legal-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.legal-main-title {
  margin-bottom: 12px;
  font-size: 2.5rem;
}

.text-meta {
  color: rgba(31, 31, 31, 0.6);
  font-size: 0.95rem;
  margin-bottom: 40px;
  line-height: 1.5;
}

.legal-sections-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-block h3 {
  margin-bottom: 10px;
  color: var(--Texte);
}

.legal-block p {
  color: rgba(31, 31, 31, 0.85);
  margin-bottom: 8px;
}

/* --- RESPONSIVE ADAPTATION --- */
@media (max-width: 1024px) {
  .legal-layout-container {
    gap: 32px;
  }
  .legal-aside-image-box {
    flex: 0 0 280px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .legal-layout-container {
    flex-direction: column; /* Aligne verticalement sur mobile */
    align-items: center;
    gap: 40px;
  }

  .legal-aside-image-box {
    flex: none;
    width: 100%;
    max-width: 320px;
    position: static; /* Désactive le mode collant sur petit écran */
    border-radius: 25px;
  }

  .legal-main-title {
    font-size: 2rem;
    text-align: center;
  }
  
  .text-meta {
    text-align: center;
    margin-bottom: 30px;
  }
}