/* ===== STYLES COMMUNS POUR LES PAGES LÉGALES ===== */

/* Page principale */
.legal-page {
  background: #F0F8FF;
  min-height: 100vh;
  padding: 40px 20px;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Titres */
.legal-page h1 {
  color: #ed85b0;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  font-weight: normal;
}

/* Sections */
.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  color: #64b5d5;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid #ed85b0;
  padding-bottom: 5px;
  display: inline-block;
}

.legal-section p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 1rem;
}

.legal-section ul {
  margin: 15px 0;
  padding-left: 20px;
}

.legal-section li {
  color: #333;
  line-height: 1.6;
  margin-bottom: 8px;
  font-size: 1rem;
}

.legal-section strong {
  color: #ed85b0;
}

/* Liens */
.legal-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-links a {
  color: #ed85b0;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #ed85b0;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.legal-links a:hover {
  background: #ed85b0;
  color: white;
  transform: translateY(-2px);
}

/* Styles spécifiques aux cookies */
.page__cookies {
  padding: 4rem 0;
  background: #F0F8FF;
  min-height: 100vh;
}

.cookies-content {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cookies-section {
  margin-bottom: 3rem;
}

.cookies-section:last-child {
  margin-bottom: 0;
}

.cookies-section h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid #ed85b0;
  padding-bottom: 0.5rem;
}

.cookies-section h3 {
  color: #34495e;
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem 0;
}

.cookies-section p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.cookies-section ul {
  color: #555;
  line-height: 1.7;
  margin-left: 1.5rem;
}

.cookies-section li {
  margin-bottom: 0.5rem;
}

.cookie-type {
  background: #F0F8FF;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid #ed85b0;
}

.cookie-controls {
  margin: 2rem 0;
}

.cookie-settings-btn {
  background: linear-gradient(135deg, #ed85b0 0%, #e74c3c 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.cookie-settings-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237, 133, 176, 0.4);
}

.cookie-settings-panel {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 1rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #F0F8FF;
  border-radius: 8px;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #ed85b0;
}

input:disabled + .slider {
  background-color: #95a5a6;
  cursor: not-allowed;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.cookie-option-text strong {
  color: #2c3e50;
  font-size: 1.1rem;
}

.cookie-option-text p {
  color: #666;
  font-size: 0.9rem;
  margin: 0.25rem 0 0 0;
}

.cookie-settings-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.save-settings-btn, .accept-all-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.save-settings-btn {
  background: #27ae60;
  color: white;
}

.save-settings-btn:hover {
  background: #229954;
  transform: translateY(-1px);
}

.accept-all-btn {
  background: #3498db;
  color: white;
}

.accept-all-btn:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

.contact-info {
  background: #F0F8FF;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-info a {
  color: #ed85b0;
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

.last-updated {
  background: #e8f5e8;
  border: 1px solid #27ae60;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
  color: #27ae60;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-container {
    padding: 30px 20px;
  }

  .legal-page h1 {
    font-size: 2rem;
  }

  .legal-section h2 {
    font-size: 1.2rem;
  }

  .legal-links {
    flex-direction: column;
    align-items: center;
  }

  .cookies-content {
    padding: 2rem 1.5rem;
  }
  
  .cookies-section h2 {
    font-size: 1.5rem;
  }
  
  .cookie-option {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cookie-settings-actions {
    flex-direction: column;
  }
  
  .save-settings-btn, .accept-all-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .legal-page {
    padding: 20px 10px;
  }
  
  .legal-container {
    padding: 20px 15px;
  }
  
  .legal-page h1 {
    font-size: 1.8rem;
  }
} 