/* Trust & legal family — shared page shell and accessibility refinements */

.about-page,
.trust-page {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding-block: clamp(20px, 4vw, 36px) clamp(32px, 5vw, 56px);
}

.about-page::before,
.trust-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.about-page::before {
  background: var(--trust-ambient-about);
}

.trust-page::before {
  background: var(--trust-ambient-document);
}

.trust-breadcrumb {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.trust-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.55;
}

.trust-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.trust-breadcrumb [aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

.about-hero-main .badge,
.trust-hero .badge {
  margin-bottom: 14px;
}

.about-hero-main .lead,
.trust-hero .lead {
  color: var(--color-text-muted);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.65;
}

.trust-hero .lead-secondary {
  margin-top: 12px;
}

.trust-family-page .nav-links a,
.trust-family-page .btn,
.trust-family-page .primary-btn {
  min-height: 44px;
}

.trust-family-page .theme-toggle,
.trust-family-page .nav-toggle,
.trust-family-page .site-footer .footer-social a {
  width: 44px;
  height: 44px;
}

.trust-family-page .site-footer .footer-links a:focus-visible,
.trust-family-page .site-footer .footer-social a:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.trust-family-page .cf-turnstile,
.trust-family-page .cf-turnstile iframe {
  max-width: 100%;
}

@media (max-width: 1023px) {
  .about-page,
  .trust-page {
    padding-inline: clamp(18px, 5vw, 24px);
  }
}

@media (forced-colors: active) {
  .about-hero-main h1,
  .trust-hero h1 span,
  .about-stat-value {
    color: CanvasText;
    background: none;
    -webkit-text-fill-color: CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.trust-family-page) {
    scroll-behavior: auto;
  }

  .trust-family-page .btn.primary::after,
  .trust-family-page .nav-cta::after {
    display: none;
  }
}
