/* Protection contre le défilement horizontal */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Adaptation pour site avec thème */
.terms-section {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
}

.terms-header {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.terms-section h2 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.terms-section h3 {
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.terms-section p,
.terms-section li {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.terms-section ul,
.terms-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.terms-date {
  font-style: italic;
  color: var(--gray);
  margin-bottom: 2rem;
}

.terms-important {
  padding: 1rem;
  background-color: rgba(var(--accent-rgb, 255, 193, 7), 0.1);
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
}

.contact-info {
  background-color: rgba(var(--primary-rgb, 0, 123, 255), 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .terms-section {
    padding: 1.5rem;
  }
  
  .terms-section h2 {
    font-size: 1.25rem;
  }
  
  .terms-section h3 {
    font-size: 1.1rem;
  }
}