/* =====================================================================
   OSNOVATOR — Условия использования (terms.css)
   Дополнение к landing.css. Переиспользует токены :root,
   .container, .glass, .glass-glow, .btn*, .fade-in, .header, .footer.
   ===================================================================== */

/* Активный пункт футера */
.footer-legal a.is-active {
  color: var(--text-primary);
  font-weight: 600;
}

/* eyebrow — единый стиль с внутренними страницами */
.terms-page .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 18px;
}

/* ---------------------------------------------------------------- HERO */
.terms-hero {
  padding: 140px 0 56px;
  position: relative;
}

.terms-hero::after {
  content: "";
  display: block;
  max-width: 760px;
  margin-top: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--glass-border-strong), transparent);
}

.terms-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 820px;
}

.terms-hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
}

.terms-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.terms-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.terms-hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--accent-hover);
  flex-shrink: 0;
}

/* -------------------------------------------------------------- LAYOUT */
.terms-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 120px;
}

/* ----------------------------------------------------------------- TOC */
.terms-toc {
  position: sticky;
  top: 100px;
}

.terms-toc-inner {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
}

.terms-toc-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.terms-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.terms-toc-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.terms-toc-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-input);
}

.terms-toc-nav a.is-active {
  color: var(--text-primary);
  background: var(--accent-soft);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* ------------------------------------------------------------ DOC BODY */
.terms-doc {
  max-width: 760px;
}

/* ===== SUMMARY ===== */
.terms-summary {
  padding: 36px 36px 32px;
  border-radius: var(--radius-xl);
  margin-bottom: 64px;
}

.terms-summary-lead {
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.terms-summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 24px;
  padding: 0;
}

.terms-summary-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

.terms-summary-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--glass-border);
}

.terms-summary-icon svg {
  width: 19px;
  height: 19px;
  color: var(--accent-hover);
}

.terms-summary-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  margin: 0;
}

/* ===== SECTIONS ===== */
.terms-section {
  margin-bottom: 52px;
  scroll-margin-top: 96px;
}

.terms-section h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 22px;
}

.terms-section-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.terms-section p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

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

.terms-inline-link {
  color: var(--accent-hover);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.terms-inline-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* списки внутри разделов */
.terms-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-list li {
  position: relative;
  padding-left: 26px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.terms-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

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

/* термины (раздел 2) */
.terms-defs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.terms-defs > div {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s ease;
}

.terms-defs > div:hover {
  border-color: var(--glass-border-strong);
}

.terms-defs dt {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 1rem;
}

.terms-defs dd {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ===== REQUISITES CARD ===== */
.terms-requisites {
  padding: 40px 36px;
  border-radius: var(--radius-xl);
  margin-top: 72px;
}

.terms-requisites-head h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.terms-requisites-head p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
}

.terms-requisites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.terms-requisites-block {
  padding: 20px 22px;
  background: var(--bg-card-solid);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terms-requisites-block:first-child {
  grid-column: 1 / -1;
}

.terms-requisites-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.terms-requisites-value {
  font-size: 1.02rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.45;
}

.terms-requisites-link {
  color: var(--accent-hover);
  text-decoration: none;
  transition: color 0.2s ease;
}

.terms-requisites-link:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------ ADAPTIVE */
@media (max-width: 980px) {
  .terms-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .terms-toc {
    display: none;
  }
}

@media (max-width: 768px) {
  .terms-hero {
    padding: 120px 0 40px;
  }
  .terms-summary {
    padding: 28px 22px;
  }
  .terms-requisites {
    padding: 32px 22px;
  }
  .terms-requisites-grid {
    grid-template-columns: 1fr;
  }
  .terms-requisites-block:first-child {
    grid-column: auto;
  }
  .terms-section h2 {
    gap: 12px;
    font-size: 1.4rem;
  }
  .terms-section-num {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}