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

/* Адаптация к теме сайта */
.terms-section {
  background-color: var(--dark-card);
  border-left: 3px solid var(--primary);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

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

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

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

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

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

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

.last-updated {
  background-color: var(--dark-lighter);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
}

.intro-text {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

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

.highlight-term {
  background-color: rgba(var(--primary-rgb), 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  color: var(--primary);
}

.table-responsive {
  margin-bottom: 1.5rem;
}

.table {
  color: var(--text-primary);
  border-color: var(--border-color);
}

.table thead {
  background: var(--dark-card);
  border-bottom: 2px solid var(--border-color);
}

.table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

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