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

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

.terms-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

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

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

.terms-section h3 {
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.terms-section h4 {
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.terms-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--dark-card);
  border-left: 4px solid var(--primary);
  border-radius: 0.25rem;
}

.terms-list {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.terms-list li {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.terms-sublist {
  list-style-type: lower-alpha;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

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

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

.important-notice {
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: var(--dark-lighter);
  border-left: 4px solid var(--accent);
  border-radius: 0.25rem;
}

.last-updated {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

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