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

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

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

.terms-section:last-child {
  border-bottom: none;
}

.terms-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

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

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

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

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

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

.update-date {
  font-size: 0.95rem;
  color: var(--text-secondary, rgba(255,255,255,0.7));
  margin-bottom: 2rem;
  font-style: italic;
}

.subsection {
  margin-left: 1.5rem;
  margin-top: 1rem;
}

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