@import url("./main.css");

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: var(--brand);
}

.nav-dropdown-toggle::after {
  content: "▾";
  margin-left: 0.35rem;
  font-size: 0.7rem;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  z-index: 60;
}

/* Invisible bridge so the menu stays open while moving the pointer down */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text-2);
  font-size: 0.8125rem;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: var(--brand-bg);
  color: var(--brand);
}

.page-hero {
  padding: var(--space-6) 0 var(--space-4);
}

.page-hero .eyebrow {
  margin-bottom: var(--space-2);
}

.answer-block {
  background: var(--brand-bg);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  margin: var(--space-4) 0;
}

.answer-block p {
  margin: 0;
  color: var(--text-2);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.process-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-3);
}

.process-step strong {
  display: block;
  color: var(--brand);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.faq-list details {
  background: var(--soft2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--muted);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details[open] summary {
  margin-bottom: 0.75rem;
}

.faq-list p {
  color: var(--text-2);
  margin: 0;
}

html[data-theme="dark"] .faq-list details,
html:not([data-theme="light"]) .faq-list details {
  background: var(--soft);
}

.trust-line {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: var(--space-3);
}

.trust-line strong {
  color: var(--text-2);
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--brand);
}

.footer,
html[data-theme="dark"] .footer,
html:not([data-theme="light"]) .footer {
  background: #07111f;
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 28px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 34px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
  margin-bottom: 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
  margin: 0;
}

.footer-copyright {
  flex-shrink: 0;
}

.footer-disclaimer {
  flex: 1;
  min-width: 0;
  max-width: none;
  text-align: right;
  line-height: 1.6;
}

.footer-col--legal {
  justify-self: auto;
  text-align: left;
}

.field select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.checkbox-field {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.checkbox-field input {
  margin-top: 0.2rem;
}

.checkbox-field label {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.5;
}

html[data-theme="dark"] .nav-dropdown-menu,
html:not([data-theme="light"]) .nav-dropdown-menu {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 1rem;
    background: transparent;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-disclaimer {
    text-align: left;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .footer {
    padding: 42px 0 24px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
