/* ============================
   LEGAL PAGES BASE
   ============================ */

.pfq-legal-main {
  padding-top: 4.5rem; /* под фиксированный хедер */
}

/* Общий вид секций legal */
.pfq-legal-hero,
.pfq-legal-block {
  padding-block: 4rem;
}

/* HERO */
.pfq-legal-hero {
  background:
    radial-gradient(circle at 0 0, #dbeafe 0, rgba(219, 234, 254, 0.35) 30%, transparent 70%),
    linear-gradient(to bottom, #eff6ff 0, #f9fafb 40%, #e5e7eb 100%);
}

.pfq-legal-hero--terms {
  background:
    radial-gradient(circle at 100% 0, #d1fae5 0, rgba(209, 250, 229, 0.35) 30%, transparent 70%),
    linear-gradient(to bottom, #ecfdf5 0, #f9fafb 40%, #eef2ff 100%);
}

.pfq-legal-hero__wrap {
  max-width: 48rem;
}

.pfq-legal-hero__kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pfq-color-text-muted);
  margin-bottom: 0.9rem;
  background: radial-gradient(circle at 0 0, #ffffff 0, #e5f2ff 85%);
}

.pfq-legal-hero__title {
  font-size: 1.9rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--pfq-color-text-soft);
}

.pfq-legal-hero__lead {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--pfq-color-text-soft);
  margin-bottom: 0.7rem;
}

.pfq-legal-hero__note {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--pfq-color-text-muted);
}

/* Обёртки и сетки */
.pfq-legal-grid {
  display: grid;
  gap: 1.6rem;
}

.pfq-legal-narrow {
  max-width: 46rem;
}

/* Заголовки блоков */
.pfq-legal-block__title {
  font-size: 1.45rem;
  line-height: 1.35;
  margin-bottom: 0.7rem;
  color: var(--pfq-color-text-soft);
}

.pfq-legal-block__text {
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--pfq-color-text-soft);
}

.pfq-legal-block__text--muted {
  color: var(--pfq-color-text-muted);
}

.pfq-legal-block__head {
  max-width: 40rem;
}

/* Варианты фона блоков */
.pfq-legal-block--accent {
  background:
    radial-gradient(circle at 100% 0, #d1fae5 0, rgba(209, 250, 229, 0.35) 30%, transparent 70%),
    linear-gradient(to bottom, #ecfdf5 0, #f9fafb 40%, #eef2ff 100%);
}

.pfq-legal-block--soft {
  background:
    radial-gradient(circle at 0 0, #fee2e2 0, rgba(254, 226, 226, 0.35) 30%, transparent 70%),
    linear-gradient(to bottom, #fef9c3 0, #f9fafb 40%, #e5e7eb 100%);
}

.pfq-legal-block--grid .pfq-legal-grid {
  gap: 1.8rem;
}

/* Колонки и списки */
.pfq-legal-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pfq-legal-cols--rows {
  grid-template-columns: minmax(0, 1fr);
}

.pfq-legal-col__title {
  font-size: 1rem;
  margin-bottom: 0.45rem;
  color: var(--pfq-color-text-soft);
}

.pfq-legal-col__text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--pfq-color-text-soft);
  margin-bottom: 0.4rem;
}

/* двухколоночная раскладка */
.pfq-legal-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.pfq-legal-two__col {
  background: #ffffff;
  border-radius: var(--pfq-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.85);
  box-shadow: var(--pfq-shadow-soft);
  padding: 0.8rem 1rem;
}

.pfq-legal-subtitle {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
  color: var(--pfq-color-text-soft);
}

.pfq-legal-paragraph {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--pfq-color-text-muted);
}

/* Список / строки в один столбец */
.pfq-legal-cols--rows .pfq-legal-row {
  margin-top: 0.7rem;
}

/* Строки "лейбл — текст" */
.pfq-legal-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.7fr);
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.6rem 0.9rem;
  border-radius: var(--pfq-radius-lg);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.85);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.pfq-legal-row__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}

.pfq-legal-row__text {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--pfq-color-text-muted);
}

/* Списки */
.pfq-legal-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.pfq-legal-list--spaced {
  margin-top: 0.9rem;
}

.pfq-legal-list__item {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--pfq-color-text-muted);
}

/* Дополнительные сетки */
.pfq-legal-cols + .pfq-legal-block__text--muted {
  margin-top: 0.9rem;
}

/* SIMPLE TWO-COL legal (next/final can переиспользовать базовые pfq-кнопки) */

/* ============================
   ADAPTIVE
   ============================ */

@media (max-width: 1040px) {
  .pfq-legal-main {
    padding-top: 4rem;
  }

  .pfq-legal-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .pfq-legal-hero,
  .pfq-legal-block {
    padding-block: 3.5rem;
  }

  .pfq-legal-hero__title {
    font-size: 1.6rem;
  }

  .pfq-legal-block__title {
    font-size: 1.3rem;
  }

  .pfq-legal-cols,
  .pfq-legal-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .pfq-legal-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pfq-legal-row__label {
    margin-bottom: 0.1rem;
  }
}

@media (max-width: 540px) {
  .pfq-legal-hero__kicker {
    font-size: 0.74rem;
  }

  .pfq-legal-hero__lead,
  .pfq-legal-hero__note {
    font-size: 0.9rem;
  }

  .pfq-legal-list__item,
  .pfq-legal-row__text,
  .pfq-legal-block__text {
    font-size: 0.88rem;
  }
}
