/* legal.css — общий стиль страниц /legal/* и /pricing */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: white;
  font-family: 'Inter', system-ui, sans-serif;
  color: #0A0E1A;
  line-height: 1.6;
}

/* ── header ── */
.lg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px;
  border-bottom: 1px solid #E5E7EB;
}
.lg-nav .lg-logo { display: block; }
.lg-nav .lg-logo img { height: 52px; display: block; }
.lg-nav .lg-back {
  font-size: 14px;
  color: #6B7280;
  text-decoration: none;
  transition: color 0.15s;
}
.lg-nav .lg-back:hover { color: #0A1E3F; }

/* ── content ── */
main.lg-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.lg-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #00B8E6;
  margin: 0 0 14px;
}
h1.lg-h1 {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: #0A1E3F;
}
.lg-meta {
  color: #6B7280;
  font-size: 14px;
  margin-bottom: 36px;
}
.lg-lead {
  font-size: 16px;
  color: #404654;
  background: #F8FAFC;
  border-left: 3px solid #00B8E6;
  padding: 16px 20px;
  margin: 0 0 36px;
  border-radius: 0 12px 12px 0;
}
h2.lg-h2 {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
  color: #0A1E3F;
}
h3.lg-h3 {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: #0A1E3F;
}
.lg-main p,
.lg-main li {
  font-size: 15.5px;
  color: #404654;
  margin: 0 0 12px;
}
.lg-main ul,
.lg-main ol { padding-left: 22px; margin: 0 0 14px; }
.lg-main li { margin-bottom: 6px; }
.lg-main a { color: #0A1E3F; text-decoration: none; border-bottom: 1px solid rgba(0,184,230,0.4); }
.lg-main a:hover { border-bottom-color: #00B8E6; color: #00B8E6; }
.lg-main strong { color: #0A1E3F; }

/* ── tables ── */
.lg-table-wrap { overflow-x: auto; margin: 0 0 16px; }
table.lg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0;
}
table.lg-table th,
table.lg-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid #E5E7EB;
  color: #404654;
}
table.lg-table th {
  background: #F8FAFC;
  color: #0A1E3F;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* ── pricing-specific ── */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 40px;
}
.pr-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .pr-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pr-grid--4 { grid-template-columns: 1fr; } }

.pr-card.pr-card--trial {
  background: linear-gradient(180deg, #E6F8FD 0%, white 100%);
  border-color: #00B8E6;
  position: relative;
}
.pr-card.pr-card--trial::before {
  content: 'Старт без оплаты';
  position: absolute;
  top: -10px;
  left: 20px;
  background: #00B8E6;
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
}
.pr-card.pr-card--trial .pr-card-price { color: #15803D; }

/* Period switcher */
.pr-period {
  display: inline-flex;
  background: #F3F4F6;
  border-radius: 14px;
  padding: 6px;
  margin: 8px 0 32px;
  gap: 4px;
  flex-wrap: wrap;
}
.pr-period__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  color: #404654;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
}
.pr-period__btn:hover { color: #0A1E3F; }
.pr-period__btn.is-active {
  background: white;
  color: #0A1E3F;
  box-shadow: 0 2px 8px rgba(10,30,63,0.08);
}
.pr-period__label { font-weight: 700; font-size: 14px; }
.pr-period__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #00B8E6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.pr-period__btn:not(.is-active) .pr-period__hint { color: #6B7280; }

/* "Итого за период" под ценой */
.pr-card-total {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 14px;
  min-height: 18px;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.pr-card-total.is-visible { opacity: 1; }
.pr-card-total strong { color: #0A1E3F; font-weight: 700; }

/* Legal disclaimer под тарифами */
.pr-disclaimer {
  font-size: 13px;
  color: #6B7280;
  margin: -16px 0 40px;
  line-height: 1.55;
}
.pr-disclaimer a { color: #0B3B6F; }

/* FAQ accordion */
.pr-faq { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 40px; }
.pr-faq-item {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.pr-faq-item[open] { background: white; border-color: #7FDCF5; }
.pr-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #0A1E3F;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.pr-faq-item summary::-webkit-details-marker { display: none; }
.pr-faq-item summary::after {
  content: '+';
  font-family: 'Onest', sans-serif;
  font-size: 22px;
  color: #00B8E6;
  font-weight: 300;
  transition: transform 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.pr-faq-item[open] summary::after { transform: rotate(45deg); }
.pr-faq-body {
  padding: 0 22px 18px;
  font-size: 14px;
  color: #404654;
  line-height: 1.6;
}
.pr-faq-body p { margin: 0 0 10px; }
.pr-faq-body p:last-child { margin-bottom: 0; }
.pr-faq-body ul { margin: 8px 0 10px; padding-left: 22px; }
.pr-faq-body ul li { margin-bottom: 6px; }
.pr-faq-body a { color: #0B3B6F; }

@media (max-width: 600px) {
  .pr-period { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .pr-period__btn { flex-shrink: 0; padding: 8px 14px; }
  .pr-period__label { font-size: 13px; }
}

/* Bottom CTA — после FAQ */
.pr-bottom-cta {
  margin: 60px 0 20px;
  padding: 50px 56px;
  background: linear-gradient(135deg, #0A1E3F 0%, #1552A0 100%);
  border-radius: 22px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pr-bottom-cta::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,184,230,0.35), transparent 70%);
  pointer-events: none;
}
.pr-bottom-cta__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7FDCF5;
  margin-bottom: 14px;
  position: relative;
}
.pr-bottom-cta h2 {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.025em;
  color: white;
  margin: 0;
  position: relative;
  line-height: 1.1;
}
.pr-bottom-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 16px auto 26px;
  line-height: 1.55;
  position: relative;
}
.pr-bottom-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 0 32px;
  height: 56px;
  background: #00B8E6;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  text-decoration: none;
  position: relative;
  box-shadow: 0 8px 24px -4px rgba(0,184,230,0.5);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.pr-bottom-cta__btn:hover {
  background: #29C6F0;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(0,184,230,0.6);
}
@media (max-width: 600px) {
  .pr-bottom-cta { padding: 36px 24px; margin: 40px 0 16px; }
  .pr-bottom-cta h2 { font-size: 26px; }
  .pr-bottom-cta p { font-size: 14px; }
  .pr-bottom-cta__btn { height: 50px; font-size: 15px; padding: 0 24px; }
}
.pr-card {
  background: white;
  border: 1.5px solid #E5E7EB;
  border-radius: 18px;
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pr-card:hover { border-color: #00B8E6; box-shadow: 0 12px 32px rgba(10,30,63,0.06); }
.pr-card.pr-featured { border-color: #0A1E3F; box-shadow: 0 16px 40px rgba(10,30,63,0.12); }
.pr-card-name {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0A1E3F;
  margin: 0 0 10px;
}
.pr-card-price {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #0A1E3F;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  line-height: 1.1;
}
.pr-card-price .pr-per { font-size: 14px; color: #6B7280; font-weight: 500; letter-spacing: 0; }
.pr-card-sub { font-size: 13px; color: #6B7280; margin: 0 0 18px; }
.pr-card ul.pr-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
}
.pr-card ul.pr-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: #404654;
  margin-bottom: 8px;
}
.pr-card ul.pr-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 7px;
  border-left: 2px solid #00B8E6;
  border-bottom: 2px solid #00B8E6;
  transform: rotate(-45deg);
}
/* Кнопки тарифов: только Trial cyan, остальные белые с cyan-hover, текст всегда #000.
   Прибавляем .lg-main в селектор чтобы перекрыть .lg-main a (которое красило текст cyan). */
.lg-main a.pr-card-cta {
  display: block;
  text-align: center;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 13px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.lg-main a.pr-card-cta:hover {
  background: #00B8E6;
  border-color: #00B8E6;
  color: #000;
  box-shadow: 0 6px 18px rgba(0,184,230,0.3);
}
/* Только Trial — заливка cyan по умолчанию */
.lg-main .pr-card.pr-card--trial a.pr-card-cta {
  background: #00B8E6;
  border-color: #00B8E6;
  color: #000;
  box-shadow: 0 6px 18px rgba(0,184,230,0.3);
}
.lg-main .pr-card.pr-card--trial a.pr-card-cta:hover {
  background: #29C6F0;
  color: #000;
}
.pr-block {
  background: #F8FAFC;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 24px 0;
}
.pr-block h2.lg-h2 { margin-top: 0; }
.pr-faq-q {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #0A1E3F;
  margin: 18px 0 6px;
}

/* ── footer ── */
footer.lg-footer {
  border-top: 1px solid #E5E7EB;
  padding: 28px 56px 36px;
  max-width: 1200px;
  margin: 60px auto 0;
}
footer.lg-footer .lg-foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}
footer.lg-footer .lg-foot-row a {
  color: #6B7280;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
footer.lg-footer .lg-foot-row a:hover { color: #0A1E3F; border-bottom-color: #E5E7EB; }
footer.lg-footer .lg-foot-cookie {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #6B7280;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
footer.lg-footer .lg-foot-cookie:hover { color: #0A1E3F; border-bottom-color: #E5E7EB; }
footer.lg-footer .lg-foot-req { color: #6B7280; font-size: 13px; }

@media (max-width: 760px) {
  .lg-nav { padding: 14px 20px; }
  .lg-nav .lg-logo img { height: 40px; }
  main.lg-main { padding: 36px 20px 60px; }
  h1.lg-h1 { font-size: 32px; }
  h2.lg-h2 { font-size: 19px; }
  footer.lg-footer { padding: 24px 20px 30px; }
  .pr-grid { grid-template-columns: 1fr; gap: 16px; }
  .pr-block { padding: 22px 20px; }
}
