.faq-page {
  --faq-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --faq-ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
  --faq-ambient-shadow: rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, #f8f9fa 0%, #f4f6f8 100%);
  color: #1f2937;
  overflow-x: clip;
}

.faq-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(0, 86, 166, 0.08), transparent 34%),
    radial-gradient(circle at 12% 22%, rgba(166, 214, 255, 0.12), transparent 24%);
  z-index: -1;
  pointer-events: none;
  transform-origin: 50% 0%;
  animation: faq-ambient-drift 18s var(--faq-ease-smooth) infinite alternate;
}

.faq-page .site-header {
  background: linear-gradient(
    to bottom,
    rgba(0, 86, 166, 0.9),
    rgba(0, 86, 166, 0.8)
  );
  backdrop-filter: blur(14px) saturate(140%);
}

.faq-page section {
  max-width: 860px;
  padding: 24px 20px;
  border-bottom: none;
}

.faq-main {
  padding-bottom: 30px;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.site-logo-link:focus-visible,
.legal-home-link:focus-visible,
.hero-link:focus-visible,
.faq-disclosure summary:focus-visible,
.company-links a:focus-visible {
  outline: 3px solid rgba(0, 86, 166, 0.22);
  outline-offset: 4px;
}

.faq-page .header-right {
  justify-content: flex-end;
}

.legal-home-link {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-home-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.4);
  outline-offset: 4px;
  border-radius: 6px;
}

.faq-hero {
  padding-top: 28px;
}

.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: #667487;
}

.breadcrumb a {
  color: #0056a6;
  font-weight: 500;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --hero-lift: 0px;
  --hero-glow-shift: 0px;
  --hero-glow-shift-soft: 0px;
  padding: 24px 20px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 86, 166, 0.08);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(18px) saturate(145%);
  transition:
    border-color 0.5s var(--faq-ease-smooth),
    box-shadow 0.7s var(--faq-ease-smooth);
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.hero-shell::before {
  top: -140px;
  right: -50px;
  width: 290px;
  height: 290px;
  background: radial-gradient(circle, rgba(138, 201, 255, 0.4) 0%, rgba(138, 201, 255, 0.08) 48%, transparent 72%);
  filter: blur(6px);
  opacity: 0.9;
  transform: translate3d(0, var(--hero-glow-shift), 0);
  animation: faq-hero-glow 15s var(--faq-ease-smooth) infinite alternate;
}

.hero-shell::after {
  bottom: -170px;
  left: -70px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.12) 56%, transparent 76%);
  opacity: 0.72;
  transform: translate3d(0, var(--hero-glow-shift-soft), 0);
  animation: faq-hero-glow-reverse 17s var(--faq-ease-smooth) infinite alternate;
}

.hero-shell > * {
  position: relative;
  z-index: 1;
}

.faq-category {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  color: #4f6f97;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-shell h1 {
  margin: 0;
  font-family: "Marcellus", serif;
  font-size: clamp(2rem, 6vw, 3.35rem);
  line-height: 1.06;
  color: #10233b;
}

.hero-intro {
  margin: 14px 0 0;
  max-width: 62ch;
  line-height: 1.75;
  color: #526173;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 86, 166, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: #10345d;
  font-weight: 600;
  transition:
    background 0.3s var(--faq-ease-smooth),
    border-color 0.3s var(--faq-ease-smooth),
    box-shadow 0.35s var(--faq-ease-smooth),
    transform 0.35s var(--faq-ease-smooth);
}

.faq-list-section {
  padding-top: 18px;
}

.faq-list-shell {
  display: grid;
  gap: 16px;
}

.faq-list-heading {
  margin-bottom: 6px;
}

.faq-list-heading h2 {
  margin: 0;
  font-family: "Marcellus", serif;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  line-height: 1.15;
  color: #10233b;
}

.faq-list-heading p {
  margin: 10px 0 0;
  color: #647487;
  line-height: 1.65;
}

.faq-item {
  scroll-margin-top: 90px;
}

.faq-disclosure {
  position: relative;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(135%);
  transition:
    transform 0.55s var(--faq-ease-smooth),
    border-color 0.4s var(--faq-ease-smooth),
    box-shadow 0.55s var(--faq-ease-smooth),
    background 0.4s var(--faq-ease-smooth);
}

.faq-disclosure::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 42%),
    radial-gradient(circle at top right, rgba(136, 198, 255, 0.14), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s var(--faq-ease-smooth);
}

.faq-disclosure summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 17px;
  list-style: none;
  cursor: pointer;
  transition: background 0.35s var(--faq-ease-smooth);
}

.faq-disclosure summary::-webkit-details-marker {
  display: none;
}

.faq-summary-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.faq-category {
  margin: 0;
}

.faq-question {
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.48;
  color: #12253d;
}

.faq-symbol {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0, 86, 166, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 255, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 18px rgba(16, 52, 93, 0.08);
  transition:
    transform 0.45s var(--faq-ease-smooth),
    border-color 0.35s var(--faq-ease-smooth),
    background 0.35s var(--faq-ease-smooth),
    box-shadow 0.35s var(--faq-ease-smooth);
}

.faq-symbol::before,
.faq-symbol::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.8px;
  border-radius: 999px;
  background: #24486f;
  transform: translate(-50%, -50%);
  transition:
    transform 0.45s var(--faq-ease-smooth),
    opacity 0.35s var(--faq-ease-smooth),
    background 0.35s var(--faq-ease-smooth);
}

.faq-symbol::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.45s var(--faq-ease-out),
    opacity 0.28s var(--faq-ease-smooth);
}

.faq-disclosure[open] .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
  padding: 0 18px;
  transform: translate3d(0, -12px, 0);
  transition:
    padding 0.45s var(--faq-ease-smooth),
    transform 0.55s var(--faq-ease-out);
}

.faq-disclosure[open] .faq-answer-inner {
  padding-bottom: 18px;
  transform: translate3d(0, 0, 0);
}

.faq-answer-inner > * {
  margin: 0;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.45s var(--faq-ease-out),
    transform 0.55s var(--faq-ease-out);
}

.faq-answer-inner > * + * {
  margin-top: 12px;
}

.faq-disclosure[open] .faq-answer-inner > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.faq-disclosure[open] .faq-answer-inner > *:nth-child(1) {
  transition-delay: 40ms;
}

.faq-disclosure[open] .faq-answer-inner > *:nth-child(2) {
  transition-delay: 80ms;
}

.faq-disclosure[open] .faq-answer-inner > *:nth-child(3) {
  transition-delay: 120ms;
}

.faq-disclosure[open] .faq-answer-inner > *:nth-child(4) {
  transition-delay: 160ms;
}

.faq-disclosure[open] .faq-answer-inner > *:nth-child(5) {
  transition-delay: 200ms;
}

.faq-answer-inner p,
.faq-answer-inner li {
  line-height: 1.75;
  color: #4e5f72;
}

.faq-disclosure[open] {
  border-color: rgba(0, 86, 166, 0.14);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 28px 56px rgba(15, 23, 42, 0.08),
    0 12px 24px rgba(70, 132, 198, 0.08);
}

.faq-disclosure[open]::before {
  opacity: 1;
}

.faq-disclosure[open] summary {
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.72), rgba(255, 255, 255, 0));
}

.faq-disclosure[open] .faq-symbol {
  transform: rotate(180deg) scale(1.03);
  border-color: rgba(0, 86, 166, 0.18);
  background: linear-gradient(180deg, rgba(244, 250, 255, 0.98), rgba(224, 239, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 24px rgba(16, 52, 93, 0.12);
}

.faq-disclosure[open] .faq-symbol::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.25);
}

.company-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.company-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(0, 86, 166, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #10345d;
  font-weight: 600;
  transition:
    background 0.3s var(--faq-ease-smooth),
    border-color 0.3s var(--faq-ease-smooth),
    box-shadow 0.35s var(--faq-ease-smooth),
    transform 0.35s var(--faq-ease-smooth);
}

.faq-page--animated .faq-reveal {
  opacity: 0;
  filter: blur(14px);
  transform: translate3d(0, var(--reveal-translate-y, 38px), 0) scale(var(--reveal-scale, 0.985));
  transition:
    opacity 0.9s var(--faq-ease-out) var(--reveal-delay, 0ms),
    transform 1.05s var(--faq-ease-out) var(--reveal-delay, 0ms),
    filter 0.9s var(--faq-ease-out) var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.faq-page--animated .faq-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.faq-page--animated .faq-reveal--hero {
  --reveal-translate-y: 54px;
  --reveal-scale: 0.972;
}

.faq-page--animated .hero-shell.faq-reveal {
  transform: translate3d(0, calc(var(--reveal-translate-y, 54px) + var(--hero-lift)), 0) scale(var(--reveal-scale, 0.972));
}

.faq-page--animated .hero-shell.faq-reveal.is-visible {
  transform: translate3d(0, var(--hero-lift), 0) scale(1);
}

.faq-page--animated .hero-shell h1,
.faq-page--animated .hero-shell .hero-intro,
.faq-page--animated .hero-shell .hero-link {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.75s var(--faq-ease-out),
    transform 0.85s var(--faq-ease-out);
}

.faq-page--animated .hero-shell.is-visible h1,
.faq-page--animated .hero-shell.is-visible .hero-intro,
.faq-page--animated .hero-shell.is-visible .hero-link {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.faq-page--animated .hero-shell.is-visible h1 {
  transition-delay: 110ms;
}

.faq-page--animated .hero-shell.is-visible .hero-intro {
  transition-delay: 190ms;
}

.faq-page--animated .hero-shell.is-visible .hero-link {
  transition-delay: 270ms;
}

@media (hover: hover) {
  .faq-item:hover .faq-disclosure {
    transform: translateY(-4px);
    border-color: rgba(0, 86, 166, 0.14);
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
      0 24px 44px var(--faq-ambient-shadow),
      0 12px 22px rgba(70, 132, 198, 0.06);
  }

  .faq-item:hover .faq-disclosure::before {
    opacity: 0.85;
  }

  .faq-item:hover .faq-disclosure:not([open]) .faq-symbol {
    transform: scale(1.03);
    border-color: rgba(0, 86, 166, 0.16);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      0 14px 24px rgba(16, 52, 93, 0.11);
  }

  .hero-link:hover,
  .company-links a:hover {
    transform: translateY(-2px);
  }

  .hero-link:hover,
  .company-links a:hover {
    background: #edf5ff;
    border-color: rgba(0, 86, 166, 0.18);
    box-shadow: 0 14px 24px rgba(16, 52, 93, 0.1);
  }
}

@media (min-width: 700px) {
  .company-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .faq-page section {
    max-width: 920px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .faq-hero {
    padding-top: 36px;
  }

  .hero-shell {
    padding: 34px 30px 30px;
  }

  .hero-intro {
    font-size: 1.02rem;
  }

  .faq-list-shell {
    gap: 20px;
  }

  .faq-disclosure summary {
    padding: 22px 24px 20px;
  }

  .faq-question {
    font-size: 1.14rem;
  }

  .faq-answer-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .faq-disclosure[open] .faq-answer-inner {
    padding-bottom: 22px;
  }
}

.legal-footer {
  max-width: none;
  margin: 0;
  padding: 0 20px 32px;
  text-align: center;
  color: #4d5d70;
  font-size: 0.95rem;
}

.legal-footer p {
  margin: 0;
  line-height: 1.65;
}

.legal-footer a {
  color: #0f3057;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

@media (prefers-reduced-motion: reduce) {
  .faq-page::after,
  .hero-shell::before,
  .hero-shell::after {
    animation: none !important;
  }

  .faq-page--animated .faq-reveal,
  .faq-page--animated .faq-reveal.is-visible,
  .faq-page--animated .hero-shell h1,
  .faq-page--animated .hero-shell .hero-intro,
  .faq-page--animated .hero-shell .hero-link,
  .hero-link,
  .company-links a,
  .faq-answer,
  .faq-answer-inner,
  .faq-answer-inner > *,
  .faq-disclosure,
  .faq-symbol {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@keyframes faq-ambient-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.95;
  }

  to {
    transform: translate3d(0, -18px, 0) scale(1.03);
    opacity: 1;
  }
}

@keyframes faq-hero-glow {
  from {
    transform: translate3d(0, var(--hero-glow-shift), 0) scale(1);
  }

  to {
    transform: translate3d(-14px, calc(var(--hero-glow-shift) - 10px), 0) scale(1.06);
  }
}

@keyframes faq-hero-glow-reverse {
  from {
    transform: translate3d(0, var(--hero-glow-shift-soft), 0) scale(1);
  }

  to {
    transform: translate3d(18px, calc(var(--hero-glow-shift-soft) + 12px), 0) scale(1.08);
  }
}

@media (min-width: 960px) {
  .legal-home-link {
    margin-right: 12px;
  }
}
