/* ==========================================
   BLES — Legal Pages & FAQ Styles
   ========================================== */

/* ---------- Nav override for legal pages ---------- */
.nav--solid {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
}

/* ---------- Legal page layout ---------- */
.legal {
  padding: 8rem 0 4rem;
  min-height: 100vh;
}

.legal__header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.legal__updated {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.legal__body {
  max-width: 780px;
}

.legal__section {
  margin-bottom: 2.5rem;
}

.legal__section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.legal__section h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 1.25rem 0 0.75rem;
  color: var(--text-primary);
}

.legal__section p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.legal__section ul {
  margin: 0.5rem 0 1rem 1.25rem;
  list-style: disc;
}

.legal__section li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.legal__section a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) var(--ease);
}

.legal__section a:hover {
  color: var(--primary-lighter);
}

/* ---------- FAQ Section ---------- */
.faq {
  padding: 5rem 0;
  position: relative;
  z-index: 2;
}

.faq__header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease);
}

.faq__item:hover {
  border-color: var(--border-hover);
}

.faq__item--open {
  border-color: var(--border-hover);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease);
}

.faq__question:hover {
  color: var(--primary-light);
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-normal) var(--ease);
}

.faq__item--open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
}

.faq__item--open .faq__answer {
  max-height: 500px;
}

.faq__answer-inner {
  padding: 0 1.5rem 1.25rem;
}

.faq__answer p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.faq__answer a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq__answer a:hover {
  color: var(--primary-lighter);
}

/* ---------- Footer links ---------- */
.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color var(--duration-fast) var(--ease);
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__link--active {
  color: var(--text-secondary);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .legal {
    padding: 6rem 0 3rem;
  }

  .legal__title {
    font-size: 1.75rem;
  }

  .legal__section h2 {
    font-size: 1.125rem;
  }

  .legal__section p,
  .legal__section li {
    font-size: 0.875rem;
  }

  .faq__question {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
  }

  .faq__answer-inner {
    padding: 0 1.25rem 1rem;
  }

  .faq__answer p {
    font-size: 0.875rem;
  }

  .footer__links {
    gap: 1rem;
  }
}
