/* ============================================
   LEGAL PAGES STYLES
   Mentions Légales, CGV, CGU, RGPD
   ============================================ */

.legal-wrapper {
  min-height: calc(100vh - 100px);
  padding: 40px 20px;
  background: linear-gradient(135deg, wheat 0%, #f5e6c8 100%);
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 15px 40px rgba(94, 73, 58, 0.15);
}

.legal-container h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: #5e493a;
  text-align: center;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.legal-container h1 i {
  color: #d4a574;
}

.last-update {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f5e6c8;
}

/* RGPD Banner */
.rgpd-banner {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 5px solid #4caf50;
  padding: 20px 25px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.rgpd-banner i {
  font-size: 2.5rem;
  color: #4caf50;
}

.rgpd-banner p {
  margin: 0;
  color: #2e7d32;
  line-height: 1.6;
}

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

.legal-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: #5e493a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f5e6c8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-section h2 i {
  color: #d4a574;
  font-size: 1.2rem;
}

.legal-section h3 {
  font-size: 1.1rem;
  color: #3d2e26;
  margin: 25px 0 15px;
}

.legal-section p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

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

.legal-section ul li {
  color: #555;
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-section a {
  color: #5e493a;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.legal-section a:hover {
  color: #d4a574;
  text-decoration: underline;
}

/* Info Cards */
.info-card {
  background: #faf8f5;
  border: 1px solid #e8e0d5;
  border-radius: 12px;
  padding: 20px 25px;
  margin: 15px 0;
}

.info-card p {
  margin-bottom: 8px;
  color: #444;
}

.info-card p:last-child {
  margin-bottom: 0;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-table thead {
  background: linear-gradient(135deg, #5e493a 0%, #3d2e26 100%);
  color: white;
}

.data-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  color: #555;
  font-size: 0.9rem;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #faf8f5;
}

/* Rights Grid */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.right-card {
  background: linear-gradient(135deg, #fff 0%, #faf8f5 100%);
  border: 2px solid #e8e0d5;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.right-card:hover {
  transform: translateY(-5px);
  border-color: #d4a574;
  box-shadow: 0 10px 25px rgba(94, 73, 58, 0.15);
}

.right-card i {
  font-size: 2rem;
  color: #5e493a;
  margin-bottom: 15px;
}

.right-card h4 {
  color: #5e493a;
  margin-bottom: 10px;
  font-size: 1rem;
}

.right-card p {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

/* Exercise Rights Box */
.exercise-rights {
  background: linear-gradient(135deg, wheat 0%, #f5e6c8 100%);
  border-radius: 15px;
  padding: 25px 30px;
  margin-top: 30px;
}

.exercise-rights h4 {
  color: #5e493a;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.exercise-rights p {
  color: #555;
  margin-bottom: 10px;
}

/* Warning Box */
.warning-box {
  background: #fff3e0;
  border-left: 5px solid #ff9800;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin: 20px 0;
}

.warning-box i {
  color: #ff9800;
  font-size: 1.5rem;
  margin-top: 3px;
}

.warning-box p {
  margin-bottom: 8px;
  color: #e65100;
}

/* Text Colors */
.text-success {
  color: #4caf50 !important;
}

.text-danger {
  color: #f44336 !important;
}

/* Legal Footer */
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #f5e6c8;
}

.btn-legal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #5e493a 0%, #3d2e26 100%);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-legal:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(94, 73, 58, 0.3);
}

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

  .legal-container h1 {
    font-size: 1.6rem;
    flex-direction: column;
    gap: 10px;
  }

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

  .rgpd-banner {
    flex-direction: column;
    text-align: center;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }

  .rights-grid {
    grid-template-columns: 1fr;
  }

  .legal-footer {
    flex-direction: column;
  }

  .btn-legal {
    justify-content: center;
  }

  .warning-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .legal-wrapper {
    padding: 20px 10px;
  }

  .legal-container {
    padding: 25px 15px;
  }

  .legal-container h1 {
    font-size: 1.4rem;
  }

  .info-card {
    padding: 15px;
  }

  .data-table th,
  .data-table td {
    padding: 10px;
    font-size: 0.8rem;
  }
}
