/**
 * Site footer — compact v1.2.0.0 (reduced vertical footprint ~45%).
 */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--clr-gray-900, #0f172a);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__glow {
  position: absolute;
  pointer-events: none;
  inset: 0;
  background:
    radial-gradient(ellipse 420px 280px at 12% 0%, rgba(29, 78, 216, 0.07), transparent 70%),
    radial-gradient(circle 320px at 88% 100%, rgba(16, 185, 129, 0.04), transparent 70%);
}

.site-footer__main {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 4vw, 2.75rem) 0 clamp(1.25rem, 3vw, 1.75rem);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}

.site-footer__brand-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3, 0.75rem);
  margin-bottom: var(--sp-3, 0.75rem);
  flex-wrap: wrap;
}

.site-footer__tagline {
  margin: 0 0 var(--sp-4, 1rem);
  font-size: var(--fs-sm, 0.875rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  max-width: 28ch;
}

.site-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #10b981;
}

.site-footer__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s ease infinite;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__col-title {
  margin: 0 0 var(--sp-3, 0.75rem);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer__col-note {
  margin: -0.35rem 0 0.65rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__links--pulse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}

.site-footer__link {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-sm, 0.875rem);
  text-decoration: none;
  transition: color var(--motion-fast, 150ms) var(--ease-standard);
}

@media (hover: hover) {
  .site-footer__link:hover {
    color: #fff;
  }
}

.site-footer__newsletter-desc {
  margin: 0 0 var(--sp-3, 0.75rem);
  font-size: var(--fs-sm, 0.875rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer__input {
  flex: 1 1 140px;
  min-width: 0;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.site-footer__input:focus {
  outline: 2px solid rgba(147, 197, 253, 0.45);
  outline-offset: 1px;
  border-color: rgba(147, 197, 253, 0.35);
}

.site-footer__submit {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0.65rem 1.15rem !important;
  font-size: var(--fs-sm, 0.875rem) !important;
  white-space: nowrap;
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  margin-top: var(--sp-6, 1.5rem);
  padding-top: var(--sp-4, 1rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3, 0.75rem) var(--sp-6, 1.5rem);
  font-size: var(--fs-xs, 0.75rem);
  color: rgba(255, 255, 255, 0.58);
}

.site-footer__legal {
  display: flex;
  align-items: center;
  gap: var(--sp-3, 0.75rem);
  flex-wrap: wrap;
}

.site-footer__network {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
}

.site-footer__network-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 0.25rem;
}

.site-footer__network a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: var(--fs-xs, 0.75rem);
}

.site-footer__network a:hover {
  color: #fff;
}

.site-footer__network a.is-hub {
  color: #93C5FD;
  font-weight: 600;
}

.footer-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition:
    background var(--motion-fast, 150ms) var(--ease-standard),
    border-color var(--motion-fast, 150ms) var(--ease-standard),
    color var(--motion-fast, 150ms) var(--ease-standard),
    transform var(--motion-fast, 150ms) var(--ease-standard);
  text-decoration: none;
}

@media (hover: hover) {
  .footer-icon-btn:hover {
    background: rgba(29, 78, 216, 0.14);
    border-color: rgba(29, 78, 216, 0.32);
    color: #93C5FD;
    transform: translateY(-1px);
  }
}

.footer-cmd-hint {
  margin: var(--sp-2, 0.5rem) 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-cmd-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer__main {
    padding-bottom: max(1.75rem, calc(env(safe-area-inset-bottom, 0px) + 1.25rem));
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-footer__brand-head,
  .site-footer__social,
  .site-footer__form {
    justify-content: center;
  }
  .site-footer__tagline {
    max-width: none;
  }
  .site-footer__links--pulse {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

.site-footer__trust-badges {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__trust-badges a {
  color: rgba(147, 197, 253, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose h2 {
  font-size: var(--fs-xl, 1.25rem);
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.02em;
}
.legal-prose p,
.legal-prose li {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}
.legal-prose ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__badge-dot {
    animation: none;
  }
}


/* ---- Footer standards strip (v1.3.0.7): one calm row, verifiable items, link to proof ---- */
.site-footer__standards { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding: 1.25rem 0; }
.site-footer__standards-title { margin: 0; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.site-footer__standards .site-footer__trust-badges { margin: 0; gap: 0.5rem; flex: 1 1 auto; font-size: 0.8125rem; }
.site-footer__standards .site-footer__trust-badges a {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 32px; padding: 0.25rem 0.75rem;
  color: rgba(255, 255, 255, 0.86); text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px; background: rgba(255, 255, 255, 0.04); transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.site-footer__standards .site-footer__trust-badges a:hover,
.site-footer__standards .site-footer__trust-badges a:focus-visible { border-color: rgba(147, 197, 253, 0.7); background: rgba(147, 197, 253, 0.1); color: #fff; outline: none; }
.site-footer__tick { color: #4ade80; font-size: 0.75rem; font-weight: 800; }
.site-footer__verify { font-size: 0.8125rem; font-weight: 700; color: rgba(147, 197, 253, 0.95); text-decoration: none; white-space: nowrap; }
.site-footer__verify:hover, .site-footer__verify:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none; }
@media (max-width: 640px) { .site-footer__standards { gap: 0.6rem; } .site-footer__verify { width: 100%; } }

/* ---- Trust page (light page theme) ---- */
.trust-page { --tp-ink: #0f172a; --tp-muted: #475569; --tp-line: #e2e8f0; --tp-accent: #1d4ed8; }
.trust-page .trust-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.trust-page .trust-jump a { padding: 0.4rem 0.9rem; border: 1px solid var(--tp-line); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: var(--tp-muted); text-decoration: none; background: #fff; }
.trust-page .trust-jump a:hover, .trust-page .trust-jump a:focus-visible { border-color: var(--tp-accent); color: var(--tp-accent); outline: none; }
.trust-page .trust-section { margin-top: 2.5rem; scroll-margin-top: 6rem; }
.trust-page .trust-section h2 { margin: 0 0 0.35rem; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--tp-ink); }
.trust-page .trust-lead { margin: 0 0 1rem; color: var(--tp-muted); line-height: 1.65; }
.trust-page .trust-lead a { color: var(--tp-accent); text-decoration: underline; text-underline-offset: 3px; }
.trust-page .trust-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.trust-page .trust-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 0.75rem 1rem; align-items: start; padding: 1rem 1.1rem; border: 1px solid var(--tp-line); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.trust-page .trust-row__check { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 0.8rem; font-weight: 800; margin-top: 2px; }
.trust-page .trust-row__check--neutral { background: #dbeafe; color: #1d4ed8; font-style: italic; }
.trust-page .trust-row__body h3 { margin: 0 0 0.25rem; font-size: 1rem; color: var(--tp-ink); }
.trust-page .trust-row__body p { margin: 0; color: var(--tp-muted); line-height: 1.6; font-size: 0.9375rem; }
.trust-page .trust-row__verify { align-self: center; white-space: nowrap; padding: 0.45rem 0.85rem; border: 1px solid #bfdbfe; border-radius: 10px; font-size: 0.8125rem; font-weight: 700; color: var(--tp-accent); text-decoration: none; background: #eff6ff; }
.trust-page .trust-row__verify:hover, .trust-page .trust-row__verify:focus-visible { background: var(--tp-accent); color: #fff; outline: none; }
@media (max-width: 640px) { .trust-page .trust-row { grid-template-columns: 28px 1fr; } .trust-page .trust-row__verify { grid-column: 2; justify-self: start; } }


/* ---- Legal pages (privacy, terms, accessibility, trust): readable on the light theme ---- */
.legal-page { --lg-ink: #0f172a; --lg-text: #334155; --lg-muted: #64748b; --lg-line: #e2e8f0; --lg-accent: #1d4ed8; }
.legal-page .text-faint { color: var(--lg-muted); }
.legal-page .legal-prose { max-width: 46rem; }
.legal-page .legal-prose h2 {
  margin: 2.5rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--lg-line);
  font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--lg-ink);
}
.legal-page .legal-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-page .legal-prose p,
.legal-page .legal-prose li { font-size: 1.0625rem; line-height: 1.75; color: var(--lg-text); }
.legal-page .legal-prose p { margin: 0 0 1rem; }
.legal-page .legal-prose ul, .legal-page .legal-prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.legal-page .legal-prose li { margin-bottom: 0.5rem; }
.legal-page .legal-prose li::marker { color: #94a3b8; }
.legal-page .legal-prose strong { color: var(--lg-ink); font-weight: 650; }
.legal-page .legal-prose a:not(.btn) { color: var(--lg-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(29, 78, 216, 0.35); }
.legal-page .legal-prose a:not(.btn):hover { text-decoration-color: currentColor; }
.legal-page .legal-prose code { padding: 0.1em 0.4em; border-radius: 6px; background: #f1f5f9; color: var(--lg-ink); font-size: 0.92em; }

/* "On this page" list: right rail on wide screens, collapsed block above the text on small ones */
.legal-page .container.has-toc { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 15rem); column-gap: 3.5rem; max-width: 68rem !important; align-items: start; }
.legal-page .container.has-toc > * { grid-column: 1; }
.legal-page .container.has-toc > .legal-toc { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 6.5rem; align-self: start; }
.legal-toc { padding: 1rem 1.1rem; border: 1px solid var(--lg-line, #e2e8f0); border-radius: 14px; background: #f8fafc; font-size: 0.875rem; }
.legal-toc__title { margin: 0 0 0.6rem; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }
.legal-toc a { display: block; padding: 0.35rem 0.6rem; border-radius: 8px; color: #475569; text-decoration: none; line-height: 1.35; }
.legal-toc a:hover, .legal-toc a:focus-visible { background: #e2e8f0; color: #0f172a; outline: none; }
.legal-toc a.is-current { background: #dbeafe; color: #1d4ed8; font-weight: 650; }
@media (max-width: 1023px) {
  .legal-page .container.has-toc { display: flex; flex-direction: column; max-width: 46rem !important; }
  .legal-page .container.has-toc > .legal-toc { position: static; margin: 0 0 2rem; order: 1; align-self: stretch; }
  .legal-page .container.has-toc > .legal-prose { order: 2; }
}
