/* Защита от горизонтального скролла */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Адаптация для темной темы */
.terms-section {
  background-color: var(--dark);
  color: var(--text-primary);
  padding: 2rem 0;
}

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

.terms-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

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

.terms-content h3 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.terms-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.terms-content ul,
.terms-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

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

.terms-section-number {
  color: var(--primary);
  font-weight: 600;
  margin-right: 0.5rem;
}

.important-notice {
  background-color: var(--dark-secondary);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
}

.important-notice p {
  margin-bottom: 0;
  color: var(--text-primary);
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .terms-content h2 {
    font-size: 1.3rem;
  }
  
  .terms-content h3 {
    font-size: 1.1rem;
  }
}