/* ════════════════════════════════════════
   ANIROXA — terms.css
   Стиль страницы соглашения
════════════════════════════════════════ */

.terms-main {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100dvh;
}

.terms-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .terms-container { padding: 0 24px; }
}

/* ── Docs fade transition ── */
.terms-doc {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ── Header блок документа ── */
.terms-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.terms-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(230,62,109,0.1);
  border: 1px solid rgba(230,62,109,0.25);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.terms-title {
  font-family: var(--font-d);
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 8px;
}
.terms-subtitle {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 16px;
}
.terms-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text3);
}
.terms-meta span::before {
  content: '';
}
.terms-meta span + span::before {
  content: '·';
  margin-right: 16px;
}

/* ── Body ── */
.terms-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.terms-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.terms-section:last-child { border-bottom: none; }

.terms-section h2 {
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.terms-section p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text2);
  margin-bottom: 10px;
}
.terms-section p:last-child { margin-bottom: 0; }

.terms-section ul {
  list-style: none;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.terms-section ul li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text2);
  padding-left: 18px;
  position: relative;
}
.terms-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* Note блок */
.terms-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(230,62,109,0.07);
  border: 1px solid rgba(230,62,109,0.2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
}
.terms-note svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* TG ссылка */
.terms-tg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #2CA5E0;
  background: rgba(44,165,224,0.08);
  border: 1px solid rgba(44,165,224,0.25);
  border-radius: 100px;
  padding: 8px 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.terms-tg-link:hover {
  background: rgba(44,165,224,0.15);
  border-color: rgba(44,165,224,0.45);
  transform: translateY(-1px);
}
.terms-tg-link svg { width: 16px; height: 16px; }

/* ── Back link и lang btn в header ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  padding: 7px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.back-link:hover { color: var(--text); border-color: var(--border2); }
.back-link svg { width: 15px; height: 15px; }

.lang-btn {
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0 14px;
  height: 36px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.lang-btn:hover { color: var(--text); border-color: var(--border2); }

/* Упрощённый header-center для terms страницы */
.terms-main ~ * { display: none; }
