/* ==========================================================================
   Supporting pages UI polish: Privacy Policy, Terms of Use, FAQs, Downloads, Results,
   Thank-you, 404, Affiliation ... every page that uses pages.css.
   Loaded after pages.css, so it only refines it. Palette: site blue + gold, soft blue tints.
   ========================================================================== */

/* ---------- page rhythm: less empty space, same gaps everywhere ---------- */
body .ab-page .ab-intro { padding: 60px 0 20px; }
body .ab-page .ab-intro .ab-copy { max-width: 740px; margin-left: auto; margin-right: auto; }
body .ab-page .ab-intro .ab-copy p { color: #5f6b7a; }
body .pg-sec { padding: 64px 0; }
body .pg-wrap { padding: 0 0 72px; }
body .pg-sub { margin-top: -10px; margin-bottom: 36px; }
body .pg-updated { margin-bottom: 30px; background: #fff; border: 1px solid #dbe6f7; box-shadow: 0 6px 16px -10px rgba(13, 71, 161, .4); }

/* ---------- legal pages (Privacy Policy, Terms of Use) ---------- */
body .pg-legal-wrap { grid-template-columns: 290px minmax(0, 1fr); gap: 32px; }
body .pg-toc { top: 104px; padding: 22px 16px 16px; background: #fff; border-radius: 16px; box-shadow: 0 14px 32px -18px rgba(13, 71, 161, .35); counter-reset: toc; }
body .pg-toc h4 { margin: 0 8px 12px; font-size: 12px; letter-spacing: .14em; color: #6b7a90; }
body .pg-toc a {
  counter-increment: toc; display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border: 0; border-radius: 10px;
  font-size: 15px; line-height: 1.4; font-weight: 500; transition: background .2s, color .2s;
}
body .pg-toc a::before {
  content: counter(toc); flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 8px;
  background: #eef4ff; color: var(--blue); font-size: 12.5px; font-weight: 700; transition: background .2s, color .2s;
}
body .pg-toc a:hover, body .pg-toc a.is-active { background: #eef4ff; color: var(--blue); }
body .pg-toc a.is-active { font-weight: 600; }
body .pg-toc a.is-active::before { background: var(--blue); color: #fff; }

body .pg-doc { padding: 46px 54px 40px; border-radius: 20px; box-shadow: 0 22px 50px -26px rgba(13, 71, 161, .35); }
body .pg-doc h3 {
  margin: 0; padding: 34px 0 12px; margin-top: 34px; border-top: 1px solid #e8eef8;
  color: var(--navy); scroll-margin-top: 100px;
}
body .pg-doc > h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
body .pg-doc p { margin: 0 0 14px; line-height: 1.85; color: #475569; }
body .pg-doc ul { margin: 0 0 16px; padding: 0; gap: 9px; list-style: none; }
body .pg-doc li { position: relative; list-style: none; padding-left: 28px; line-height: 1.75; color: #475569; }
body .pg-doc li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #e8f0fe; }
body .pg-doc a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(26, 115, 232, .4); }
body .pg-doc a:hover { text-decoration-color: var(--blue); }

/* ---------- FAQs ---------- */
body .pg-acc { max-width: 960px; gap: 16px; }
body .pg-acc details { border-radius: 16px; transition: box-shadow .25s, border-color .25s, background .25s; }
body .pg-acc details:hover { border-color: #b9cdee; background: #fbfdff; }
body .pg-acc details[open] { border-color: #b9cdee; border-left: 4px solid var(--blue); box-shadow: 0 18px 38px -22px rgba(13, 71, 161, .45); background: #fff; }
body .pg-acc summary { padding: 20px 26px; line-height: 1.35; }
body .pg-acc summary b { background: linear-gradient(135deg, #e8f0fe, #fff); border: 1px solid #cfe0fb; }
body .pg-acc details[open] summary b { background: var(--blue); border-color: var(--blue); color: #fff; }
body .pg-acc summary::after { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eef4ff; font-size: 22px; line-height: 1; transition: transform .25s; }
body .pg-qa { padding: 4px 28px 18px; }
body .pg-qa h4 { margin: 0; padding: 18px 0 6px; border-top: 1px dashed #dbe6f7; }
body .pg-qa h4:first-child { border-top: 0; }
body .pg-qa p { padding-bottom: 6px; }

/* ---------- Downloads ---------- */
body .pg-dl { gap: 14px; }
body .pg-dl li { border-radius: 16px; padding: 18px 24px; border-left: 4px solid transparent; }
body .pg-dl li:hover { border-left-color: var(--blue); box-shadow: 0 18px 36px -22px rgba(13, 71, 161, .45); transform: translateY(-2px); }
body .pg-dl .pg-ico { background: linear-gradient(135deg, #e8f0fe, #fff); border: 1px solid #d3e3fb; border-radius: 14px; }

/* ---------- Results ---------- */
body .pg-ach article { border-radius: 16px; }
body .pg-ach strong { padding-top: 4px; }

/* ---------- Thank-you and 404 ---------- */
body .pg-ok { padding: 56px 44px 48px; border-radius: 24px; box-shadow: 0 30px 70px -34px rgba(13, 71, 161, .4); border-top: 5px solid #1a9d57; }
body .pg-ok .pg-tick { box-shadow: 0 0 0 10px #f0faf4; }
body .pg-404 { opacity: .22; background: linear-gradient(135deg, #1a73e8, #ffc107); -webkit-background-clip: text; background-clip: text; color: transparent; }
body .pg-steps li, body .pg-lcards a, body .pg-contact > div { transition: transform .25s, box-shadow .25s, border-color .25s; }
body .pg-steps li:hover, body .pg-contact > div:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(13, 71, 161, .45); border-color: #b9cdee; }

/* ---------- phones ---------- */
@media (max-width: 991px) {
  body .pg-legal-wrap { grid-template-columns: 1fr; }
  body .pg-toc { position: static; }
  body .pg-doc { padding: 32px 26px 28px; }
  body .pg-cta { padding: 30px 26px; }
  body .pg-cta-btns { width: 100%; }
}
@media (max-width: 575px) {
  body .ab-page .ab-intro { padding: 44px 0 12px; }
  body .pg-sec { padding: 48px 0; }
  body .pg-doc { padding: 26px 20px 22px; }
  body .pg-acc summary { padding: 16px 16px; }
  body .pg-qa { padding: 2px 18px 14px; }
  body .pg-dl li { padding: 16px; }
  body .pg-ok { padding: 40px 22px 34px; }
}
