/* ─── FAQ page (/faq) ───
   Topic list on the left (sticky on desktop), questions as an accordion on
   the right. Each question is a native <details>, so every answer is in the
   page's HTML for search engines even while collapsed. */

.faq-layout {
  display: grid;
  /* 252px keeps "StayUpRight! (Free Consumer App)" and "Data Privacy,
     Security & Compliance" on one line even at the bolder hover weight; the
     gap gives back the 12px so the questions keep their width. */
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-top: 16px;
  padding-bottom: 48px;
}

.faq-toc {
  position: sticky;
  top: 110px;
}

.faq-toc__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}

.faq-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-toc a {
  display: block;
  padding: 7px 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--text-secondary);
  text-decoration: none;
}

.faq-toc a:hover,
.faq-toc a:focus-visible {
  color: var(--brand);
  font-weight: 400;
}

.faq-group {
  scroll-margin-top: 110px;
  margin-bottom: 44px;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--brand);
  margin: 0 0 14px;
}

.faq-item {
  border: 1px solid #c9c9cc;
  border-radius: 12px;
  background: var(--white);
  margin-bottom: 10px;
  scroll-margin-top: 110px;
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

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

.faq-item__q h3 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.35;
  color: #2b2b2b;
}

.faq-item__q:hover h3,
.faq-item[open] .faq-item__q h3 {
  color: var(--brand);
}

.faq-item__q:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Plus that turns into a minus when the answer is open. */
.faq-item__icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  left: 0;
  top: 5.5px;
  width: 14px;
  height: 3px;
  border-radius: 1.5px;
  background: var(--cta-sun);
  transition: transform 0.2s ease;
}

.faq-item__icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-item__icon::after {
  transform: rotate(0deg);
}

.faq-item__a {
  padding: 0 22px 20px;
}

.faq-item__a p {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-item__a p:last-child {
  margin-bottom: 0;
}

/* Keeps a superscript ® from opening up the line spacing. */
.faq-item__a sup {
  font-size: 0.6em;
  line-height: 0;
}

.faq-item__a small {
  display: block;
  font-size: 0.82rem;
  line-height: 1.55;
}

.faq-item__a a {
  color: var(--brand);
  text-decoration: underline;
}

.faq-top {
  margin: 32px 0 0;
  text-align: right;
}

.faq-top a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--brand);
  text-decoration: none;
}

.faq-top a:hover,
.faq-top a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* On one column the topic list becomes a row of chips above the questions. */
  .faq-toc {
    position: static;
  }

  .faq-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .faq-toc a {
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #c9c9cc;
    border-radius: 999px;
    font-size: 0.9rem;
  }

  .faq-toc a:hover,
  .faq-toc a:focus-visible {
    border-color: var(--brand);
  }

  .faq-item__q {
    padding: 16px 18px;
  }

  .faq-item__a {
    padding: 0 18px 18px;
  }
}
