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

/* Адаптация к теме */
.terms-content {
  background-color: var(--dark-card);
  color: var(--text-primary);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

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

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

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

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

.last-updated {
  background: var(--dark-surface);
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid var(--accent-gold);
  margin-bottom: 2rem;
}

.last-updated p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.highlight-text {
  color: var(--accent-gold);
  font-weight: 500;
}

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

.table {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.table thead {
  background: var(--dark-surface);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table td,
.table th {
  padding: 0.75rem;
  vertical-align: top;
}