/* ========================================================================
   CP x CP — PAGES LÉGALES
   Dark mode lisible + responsive + RGPD
   ======================================================================== */

/* ========== HERO SECTION ========== */

.cp-legal-hero {
  position: relative;
  min-height: 35vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  overflow: hidden;
  border-bottom: 1px solid rgba(182, 255, 71, 0.1);
}

.cp-legal-hero::before {
  /* Couche 1 : gros blur subtil */
  content: '';
  position: absolute;
  top: 20%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(182, 255, 71, 0.1), transparent 50%);
  border-radius: 50%;
  filter: blur(100px);
  animation: drift-slow 12s ease-in-out infinite;
}

.cp-legal-hero::after {
  /* Couche 2 : petit glow + mouvement plus rapide */
  content: '';
  position: absolute;
  bottom: -10%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(182, 255, 71, 0.08), transparent 60%);
  border-radius: 50%;
  filter: blur(60px);
  animation: drift-fast 8s ease-in-out infinite reverse;
}

@keyframes drift-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

@keyframes drift-fast {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, 15px); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes float-legal {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(20px); }
}

.cp-legal-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.cp-legal-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
}

.cp-legal-hero-title .cp-accent {
  color: #B6FF47;
  font-style: italic;
}


/* ========== CONTENU LÉGAL ========== */

.cp-legal-content {
  background: #0a0a0a;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
  line-height: 1.8;
}

.cp-legal-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  color: #B6FF47;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(182, 255, 71, 0.2);
  letter-spacing: -0.3px;
}

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

.cp-legal-content p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.cp-legal-content strong {
  color: #B6FF47;
  font-weight: 600;
}

.cp-legal-content em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}


/* ========== LISTES ========== */

.cp-legal-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem 0;
}

.cp-legal-list li {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

.cp-legal-list li:before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #B6FF47;
  font-size: 18px;
  font-weight: bold;
}

.cp-legal-list li strong {
  color: #B6FF47;
}


/* ========== BOXES LÉGALES ========== */

.cp-legal-box {
  background: rgba(182, 255, 71, 0.05);
  border: 1px solid rgba(182, 255, 71, 0.2);
  border-left: 4px solid #B6FF47;
  border-radius: 8px;
  padding: 24px;
  margin: 2rem 0;
}

.cp-legal-box p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.cp-legal-box p br {
  display: block;
  content: '';
  margin: 0.5rem 0;
}


/* ========== MISE À JOUR ========== */

.cp-legal-update {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(182, 255, 71, 0.1);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-style: italic;
}

/* ========== BOUTON RETOUR ========== */

.cp-legal-breadcrumb {
  background: #0a0a0a;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(182, 255, 71, 0.1);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.cp-legal-back-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #B6FF47;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.cp-legal-back-btn:hover {
  transform: translateX(4px);
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .cp-legal-breadcrumb {
    padding: 16px 24px;
  }

  .cp-legal-back-btn {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cp-legal-breadcrumb {
    padding: 12px 16px;
  }

  .cp-legal-back-btn {
    font-size: 12px;
  }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .cp-legal-hero {
    min-height: 25vh;
    padding: 40px 20px;
  }

  .cp-legal-hero-title {
    font-size: 1.8rem;
  }

  .cp-legal-content {
    padding: 40px 24px;
  }

  .cp-legal-content h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
  }

  .cp-legal-content p {
    font-size: 15px;
  }

  .cp-legal-list li {
    font-size: 15px;
    margin-bottom: 0.8rem;
  }

  .cp-legal-box {
    padding: 20px;
  }

  .cp-legal-box p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .cp-legal-hero {
    min-height: 20vh;
    padding: 30px 16px;
  }

  .cp-legal-hero-title {
    font-size: 1.4rem;
  }

  .cp-legal-content {
    padding: 30px 16px;
    max-width: 100%;
  }

  .cp-legal-content h2 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .cp-legal-content p {
    font-size: 14px;
    margin-bottom: 1.2rem;
  }

  .cp-legal-list {
    margin: 1rem 0 1.5rem 0;
  }

  .cp-legal-list li {
    font-size: 14px;
    margin-bottom: 0.7rem;
    padding-left: 20px;
  }

  .cp-legal-list li:before {
    font-size: 16px;
  }

  .cp-legal-box {
    padding: 16px;
    margin: 1.5rem 0;
  }

  .cp-legal-update {
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 12px;
  }
}
