/* CSS pour les pages légales - Intégré au design du site */

/* Override pour les pages légales - Largeur maximale */
.legal-page .home-container {
  max-width: 1400px !important;
  padding: 2rem;
}

.legal-page .welcome-section {
  max-width: 100% !important;
  padding: 3rem 2rem;
}

.legal-page .welcome-content {
  max-width: 100% !important;
}

.legal-page .card {
  max-width: 100% !important;
  margin: 0;
  padding: 3rem;
}

/* Notifications pour les pages légales - Statiques dans le contenu */
.legal-page .notification {
  position: static !important;
  transform: none !important;
  max-width: 100% !important;
  margin: 1.5rem 0 !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: auto !important;
}

.legal-page .notification.show {
  transform: none !important;
}

.legal-page .notification-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  line-height: 1.5;
  width: 100%;
}

.legal-page .notification-info {
  background: #dbdbdb;
  border: 1px solid black;
  color: black;
}

.legal-page .notification-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}

.legal-page .notification-success {
  background: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
}

.legal-page .notification-error {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.legal-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.legal-section h3 {
  color: #374151;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.legal-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #4b5563;
}

.legal-section ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #4b5563;
}

.legal-section strong {
  color: #1e293b;
  font-weight: 600;
}

.legal-section a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-section a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legal-table th {
  background: #1e293b;
  color: #ffffff;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.legal-table td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #4b5563;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:hover {
  background: #f8fafc;
}

.legal-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease;
}

.legal-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legal-card h5 {
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-card p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.legal-accordion {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0;
}

.legal-accordion-header {
  background: #f8fafc;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-accordion-header:hover {
  background: #f1f5f9;
}

.legal-accordion-header h3 {
  margin: 0;
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-accordion-body {
  padding: 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: none; /* Masqué par défaut */
}

.legal-accordion-body:last-child {
  border-bottom: none;
}

.legal-accordion-body.active {
  display: block;
}

.legal-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.legal-badge-secondary {
  background: #f3f4f6;
  color: #374151;
}

.legal-badge-success {
  background: #d1fae5;
  color: #065f46;
}

/* Dark theme support */
[data-theme="dark"] .legal-section h2 {
  color: #f1f5f9;
  border-bottom-color: #475569;
}

[data-theme="dark"] .legal-section h3 {
  color: #cbd5e1;
}

[data-theme="dark"] .legal-section p,
[data-theme="dark"] .legal-section li {
  color: #94a3b8;
}

[data-theme="dark"] .legal-section strong {
  color: #f1f5f9;
}

[data-theme="dark"] .legal-section a {
  color: #60a5fa;
}

[data-theme="dark"] .legal-section a:hover {
  color: #93c5fd;
}

[data-theme="dark"] .legal-table {
  background: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .legal-table th {
  background: #0f172a;
  color: #f8fafc;
}

[data-theme="dark"] .legal-table td {
  color: #cbd5e1;
  border-bottom-color: #475569;
}

[data-theme="dark"] .legal-table tr:hover {
  background: #334155;
}

[data-theme="dark"] .legal-card {
  background: #1e293b;
  border-color: #475569;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .legal-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .legal-card h5 {
  color: #f1f5f9;
}

[data-theme="dark"] .legal-card p {
  color: #94a3b8;
}

[data-theme="dark"] .legal-accordion {
  border-color: #475569;
}

[data-theme="dark"] .legal-accordion-header {
  background: #334155;
  border-bottom-color: #475569;
}

[data-theme="dark"] .legal-accordion-header:hover {
  background: #475569;
}

[data-theme="dark"] .legal-accordion-header h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .legal-accordion-body {
  background: #1e293b;
  border-bottom-color: #475569;
}

/* Mode sombre pour les notifications légales */
[data-theme="dark"] .legal-page .notification-info {
  background: #1e3a8a;
  border: 1px solid #3b82f6;
  color: #dbeafe;
}

[data-theme="dark"] .legal-page .notification-warning {
  background: #92400e;
  border: 1px solid #f59e0b;
  color: #fef3c7;
}

[data-theme="dark"] .legal-page .notification-success {
  background: #065f46;
  border: 1px solid #10b981;
  color: #d1fae5;
}

[data-theme="dark"] .legal-page .notification-error {
  background: #991b1b;
  border: 1px solid #ef4444;
  color: #fee2e2;
}

/* Responsive design */
@media (max-width: 768px) {
  .legal-container {
    padding: 1rem;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .legal-table {
    font-size: 0.875rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.75rem;
  }

  .legal-card {
    padding: 1rem;
  }

  .legal-accordion-header {
    padding: 0.75rem 1rem;
  }

  .legal-accordion-body {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .legal-section h2 {
    font-size: 1.25rem;
  }

  .legal-section h3 {
    font-size: 1.1rem;
  }

  .legal-table {
    font-size: 0.8rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.5rem;
  }
}
