/* Info pages: Contact, FAQ, Privacy Policy, Cookie Policy, Subscription Terms.
   Figma page "📄 Info pages" (69:2). Desktop-only in Figma; mobile derived from the other mobile frames. */

/* ---------- Hero (71:68 / 72:68 / 74:68 / 71:517 / 71:265) ---------- */
.info-hero { background: var(--sky); padding: var(--hero-top) 0 40px; text-align: center; }
.info-hero__title { font-weight: 700; font-size: 60px; line-height: 66px; color: var(--ink); }
.info-hero__sub {
  max-width: 800px; margin: 18px auto 0;
  font-size: 20px; line-height: 28px; color: var(--text);
}

/* ---------- Legal text (74:90 / 71:538 / 71:287) ---------- */
.legal-body { padding: 10px 0 100px; }
.legal h4 { margin-bottom: 0; }
.legal { max-width: calc(880px + 2 * var(--gutter)); }
.legal > * + * { margin-top: 14px; }
.legal > h2, .legal > h3:not(.h-sm) { margin-top: 44px; } /* 16px spacer + 2 × 14px gap */
.legal > h2:first-child { margin-top: 30px; }
.legal h2 { font-weight: 700; font-size: 32px; line-height: 40px; color: var(--ink); }
.legal h3 { font-weight: 700; font-size: 24px; line-height: 31px; color: var(--ink); }
.legal h4, .legal .h-sm, .legal__lead { font-weight: 700; font-size: 20px; line-height: 28px; color: var(--ink); }
.legal p, .legal li { font-size: 16px; line-height: 26px; color: var(--text); }
.legal a { color: #4C96FF; overflow-wrap: anywhere; }
.legal a:hover { text-decoration: underline; }
.legal__lead a { color: inherit; }

.legal ul li { position: relative; padding-left: 19px; }
.legal ul li + li, .legal li > ul { margin-top: 14px; }
.legal ul li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: #30869C;
}
.legal li > ul { margin-left: 9px; } /* nested items: bullet at 28px */

/* Tables: horizontal scroll inside the wrapper on narrow screens */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table { width: 100%; min-width: 640px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.table-wrap th, .table-wrap td {
  padding: 12px 14px;
  font-size: 14px; line-height: 20px;
  text-align: left; vertical-align: top;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
}
.table-wrap th { font-weight: 700; color: var(--ink); background: var(--sky); }
.table-wrap td { font-weight: 400; color: var(--text); background: #fff; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap .table--sm { min-width: 760px; }
.table-wrap .table--sm th, .table-wrap .table--sm td { padding: 12px; font-size: 13px; line-height: 19px; }
.table-wrap .table--sm tr.caption th { padding: 12px 16px; font-size: 16px; line-height: 24px; }


/* ---------- Contact (71:90) ---------- */
.contact { padding: 20px 0 110px; }
.contact__inner { display: flex; align-items: flex-start; gap: 32px; }

.contact-form {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: 40px;
  background: #fff;
  border-radius: 40px;
  box-shadow: var(--shadow-soft);
}
.contact-form__title { font-weight: 700; font-size: 32px; line-height: 40px; color: var(--ink); }
.contact-form__intro { font-size: 16px; line-height: 24px; letter-spacing: .03em; color: var(--text); }
.field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.field__label { font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: .03em; color: var(--ink); }
.field__input {
  width: 100%; height: 56px;
  padding: 0 22px;
  font: inherit; font-size: 16px; line-height: 24px; letter-spacing: .03em; color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  outline: none;
  transition: border-color .15s;
}
textarea.field__input { height: 180px; min-height: 180px; max-height: 400px; padding: 16px 22px; border-radius: 24px; resize: vertical; } /* drag to resize only between 180 and 400px; longer text scrolls inside */
.field__input::placeholder { color: #94989E; opacity: 1; }
.field__input:hover { border-color: #D5D5DA; }
.field__input:focus-visible { border-color: #4C96FF; }
.field__input[aria-invalid="true"] { border-color: #DF1263; }
.field__error { font-size: 13px; line-height: 18px; letter-spacing: .02em; color: #DF1263; }
.field__error:empty { display: none; }

.btn--sm { padding: 12px 24px; font-size: 18px; line-height: 30px; letter-spacing: .03em; }
.contact-form__note { font-size: 13px; line-height: 18px; letter-spacing: .02em; color: #94989E; }
.contact-form__status { font-size: 14px; line-height: 20px; letter-spacing: .03em; color: var(--text); }
.contact-form__status:empty { display: none; }

.contact-info { flex: 0 0 420px; display: flex; flex-direction: column; gap: 20px; }
.info-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 26px 28px 28px;
  border-radius: 30px;
  background: var(--sky);
}
.info-card--green { background: var(--green-10); }
.info-card__title { font-weight: 700; font-size: 20px; line-height: 28px; color: var(--ink); }
.info-card p, .info-card address { font-style: normal; font-size: 16px; line-height: 24px; letter-spacing: .03em; color: var(--text); }
.info-card address { display: flex; flex-direction: column; gap: 10px; }
.info-card__link { font-weight: 700; font-size: 16px; line-height: 24px; color: #4C96FF; }
.info-card__link:hover { text-decoration: underline; }
.info-card__link .arrow { margin-left: 9px; }


/* ---------- FAQ hero chips (72:70) ---------- */
.info-hero--faq .info-hero__title { line-height: 66px; }
.faq-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.faq-tab {
  padding: 10px 18px;
  border-radius: 100px;
  background: #fff;
  font-weight: 700; font-size: 16px; line-height: 24px; color: var(--ink);
  transition: box-shadow .15s, color .15s;
}
.faq-tab:hover { box-shadow: var(--shadow-soft); color: var(--blue); }
.faq-tab.is-active { background: var(--grad); color: #fff; }

/* ---------- FAQ body (72:96) ---------- */
.faq { padding: 10px 0 100px; }
.faq__col { max-width: calc(960px + 2 * var(--gutter)); display: flex; flex-direction: column; gap: 56px; }
.faq-group { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 116px; }
.faq-group__title { margin-bottom: 22px; font-weight: 700; font-size: 40px; line-height: 44px; color: var(--ink); }

.faq-item {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .2s;
}
/* open and closed items share the same white card; the gradient "minus" marks the open one */
.faq-item[open] .faq-item__a { animation: faq-reveal .2s ease; }
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-4px); } }
.faq-item__q {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px 22px 28px;
  border-radius: 24px;
  font-weight: 700; font-size: 20px; line-height: 28px; color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q span { flex: 1 1 auto; min-width: 0; }
.faq-item__toggle { flex: none; width: 36px; height: 36px; }
.faq-item__toggle--minus, .faq-item[open] .faq-item__toggle--plus { display: none; }
.faq-item[open] .faq-item__toggle--minus { display: block; }
.faq-item:not([open]):hover { box-shadow: 0 0 40px rgba(0, 0, 0, .09); }
.faq-item__q:hover span { color: var(--blue); }
.faq-item__q span { transition: color .15s; }
.faq-item__a { display: flex; flex-direction: column; gap: 14px; margin-top: -8px; padding: 0 24px 22px 28px; }
.faq-item__a p { font-size: 16px; line-height: 26px; color: var(--text); }
.faq-item__a a { color: #4C96FF; word-break: break-word; }
.faq-item__a ol, .faq-item__a ul { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; font-size: 16px; line-height: 26px; color: var(--text); }
.faq-item__a ol { list-style: decimal; }
.faq-item__a ul { list-style: disc; }
.faq-item__a li::marker { color: #4C96FF; }
.faq-item__a strong { color: var(--ink); }

/* ---------- Still have questions (72:240) ---------- */
.faq-cta { padding: 0 0 100px; }
.faq-cta__card {
  display: flex; align-items: center; gap: 32px;
  padding: 44px 56px;
  border-radius: 40px;
  background: var(--sky);
}
.faq-cta__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.faq-cta__title { font-weight: 700; font-size: 32px; line-height: 40px; color: var(--ink); }
.faq-cta__text p { max-width: 600px; font-size: 18px; line-height: 26px; color: var(--text); }
.faq-cta__text a { color: inherit; }
.faq-cta__text a:hover { color: #4C96FF; }


/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .contact-info { flex-basis: 360px; }
}

@media (max-width: 899px) {
  .info-hero { padding: var(--hero-top) 0 28px; }
  .info-hero__title { font-size: 36px; line-height: 44px; }
  .info-hero--faq .info-hero__title { line-height: 44px; }
  .info-hero__sub { margin-top: 12px; font-size: 16px; line-height: 24px; }

  .legal-body { padding: 4px 0 64px; }
  .legal > h2, .legal > h3:not(.h-sm) { margin-top: 36px; }
  .legal > h2:first-child { margin-top: 20px; }
  .legal h2 { font-size: 24px; line-height: 30px; }
  .legal h3 { font-size: 20px; line-height: 28px; }
  .legal h4, .legal .h-sm, .legal__lead { font-size: 18px; line-height: 26px; }
  .table-wrap { border-radius: 16px; margin-right: calc(-1 * var(--gutter)); border-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }

  .contact { padding: 8px 0 64px; }
  .contact__inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .contact-form { padding: 28px 20px; border-radius: 30px; gap: 16px; }
  .contact-form__title { font-size: 24px; line-height: 32px; }
  .contact-form .btn--sm { width: 100%; }
  .contact-info { flex-basis: auto; gap: 16px; }
  .info-card { padding: 22px 24px 24px; border-radius: 26px; }
  .info-card__title { font-size: 18px; line-height: 26px; }

  .faq-tabs { gap: 8px; margin-top: 20px; }
  .faq-tab { padding: 8px 16px; font-size: 15px; }
  .faq { padding: 4px 0 64px; }
  .faq__col { gap: 40px; }
  .faq-group { gap: 12px; scroll-margin-top: 88px; }
  .faq-group__title { margin-bottom: 8px; font-size: 28px; line-height: 1.1; }
  .faq-item, .faq-item__q { border-radius: 20px; }
  .faq-item__q { gap: 12px; padding: 18px 16px 18px 20px; font-size: 17px; line-height: 24px; }
  .faq-item__toggle { width: 32px; height: 32px; }
  .faq-item__a { padding: 0 16px 18px 20px; margin-top: -6px; gap: 12px; }
  .faq-item__a p, .faq-item__a ol, .faq-item__a ul { font-size: 15px; line-height: 24px; }

  .faq-cta { padding-bottom: 64px; }
  .faq-cta__card { flex-direction: column; align-items: stretch; gap: 20px; padding: 28px 24px; border-radius: 30px; text-align: center; }
  .faq-cta__title { font-size: 24px; line-height: 32px; }
  .faq-cta__text p { font-size: 16px; line-height: 24px; }
}

/* Tablet (601–899px) */
@media (min-width: 601px) and (max-width: 899px) {
  .info-hero__title { font-size: 40px; line-height: 1.1; }
  .info-hero--faq .info-hero__title { line-height: 1.1; }
  .contact-form { padding: 36px 32px; }
  .contact-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-info > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .faq-cta__card { padding: 36px 40px; }
}
