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

/* Адаптация к теме сайта */
.terms-section {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.terms-header {
  border-bottom: 2px solid var(--border-color, rgba(255,255,255,0.1));
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.terms-updated {
  color: var(--text-secondary, rgba(255,255,255,0.7));
  font-size: 0.95rem;
}

.terms-content h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.terms-content h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.terms-content h3 {
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

.terms-content p {
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.terms-content ul,
.terms-content ol {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

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

.important-notice {
  padding: 1.25rem;
  margin: 2rem 0;
  border-left: 4px solid var(--primary, #007bff);
  background: var(--dark-card, rgba(255,255,255,0.05));
  border-radius: 4px;
}

.definition-term {
  font-weight: 600;
  color: var(--text-primary);
}

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