.terms-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.875rem;
  width: 100%;
}

.terms-page__title {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
}

.terms-page__title-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.terms-page__title-text {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: normal;
  color: var(--color-text);
}

.terms-page__sections {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.875rem;
  width: 100%;
}

.terms-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  width: 100%;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: 1.5625rem;
}

.terms-section__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: normal;
  color: var(--color-text);
}

.terms-section__text {
  margin: 0;
  font-size: var(--font-md);
  font-weight: 400;
  line-height: normal;
  color: var(--color-text-muted);
  word-break: break-word;
}

/* ==========================================================================
   FAQ page — Figma node 4603:1137
   ========================================================================== */

.faq-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.875rem;
  width: 100%;
}

.faq-page__title {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
}

.faq-page__title-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.faq-page__title-text {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: normal;
  color: var(--color-text);
}

.faq-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--faq-column-gap);
  width: 100%;
  max-width: calc(var(--faq-column-width) * 2 + var(--faq-column-gap));
  align-items: start;
}

.faq-category {
  display: flex;
  flex-direction: column;
  gap: var(--faq-category-gap);
  width: 100%;
  min-width: 0;
}

.faq-category__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: normal;
  color: var(--color-text);
}

.faq-category__list {
  display: flex;
  flex-direction: column;
  gap: var(--faq-item-gap);
  width: 100%;
}

.faq-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--faq-item-radius);
  overflow: hidden;
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  gap: var(--faq-item-inner-gap);
  width: 100%;
  min-height: var(--faq-item-height);
  padding: var(--faq-item-padding-y) var(--faq-item-padding-x);
  background: var(--color-surface-5);
  border-radius: var(--faq-item-radius);
  text-align: left;
  transition: var(--transition-base);
}

.faq-item__trigger:hover {
  background: var(--color-surface-6);
}

.faq-item__trigger:focus-visible {
  outline: 0.125rem solid var(--color-accent);
  outline-offset: 0.125rem;
}

.faq-item__trigger:active {
  background: var(--color-surface-7);
}

.faq-item--open .faq-item__trigger {
  border-radius: var(--faq-item-radius) var(--faq-item-radius) 0 0;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 2.125rem;
  height: 2.125rem;
  object-fit: contain;
}

.faq-item__question {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--font-md);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.faq-item__arrow-wrap {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0.625rem;
  margin: -0.625rem;
}

.faq-item__arrow {
  width: 0.75rem;
  height: 0.375rem;
  transition: transform 0.2s ease-in-out;
}

.faq-item--open .faq-item__arrow {
  transform: rotate(180deg);
}

.faq-item__panel {
  padding: 0 var(--faq-item-padding-x) var(--faq-item-padding-y);
  background: var(--color-surface-5);
  border-radius: 0 0 var(--faq-item-radius) var(--faq-item-radius);
}

.faq-item__answer {
  margin: 0;
  padding-top: 0.125rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text-muted);
  word-break: break-word;
}

.faq-item__link {
  color: var(--color-faq-accent);
  text-decoration: underline;
  transition: var(--transition-base);
}

.faq-item__link:hover {
  color: var(--color-accent);
}

.faq-item__link:focus-visible {
  outline: 0.125rem solid var(--color-accent);
  outline-offset: 0.125rem;
}

.faq-item__link:active {
  color: var(--color-text);
}

.faq-item__answer a {
  color: var(--color-faq-accent);
  text-decoration: underline;
  transition: var(--transition-base);
}

.faq-item__answer a:hover {
  color: var(--color-accent);
}

@media (max-width: 48rem) {
  .faq-page {
    gap: 0.9375rem;
  }

  .faq-page__title {
    gap: 0.625rem;
  }

  .faq-page__title-icon {
    width: 2rem;
    height: 2rem;
  }

  .faq-page__title-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: normal;
  }

  .faq-page__grid {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    max-width: none;
  }

  .faq-category {
    gap: 0.9375rem;
  }

  .faq-category__title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: normal;
  }

  .faq-category__list {
    gap: 0.625rem;
  }

  .faq-item__trigger {
    justify-content: space-between;
    gap: 0.625rem;
    min-height: 0;
    padding: 0.9375rem 0.625rem;
    border-radius: 1.25rem;
  }

  .faq-item__icon {
    width: 1.625rem;
    height: 1.625rem;
  }

  .faq-item__question {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: normal;
    white-space: normal;
  }

  .faq-item__arrow-wrap {
    width: 1.25rem;
    height: 0.75rem;
    padding: 0;
    margin: 0;
  }

  .faq-item__answer {
    font-size: 0.75rem;
    line-height: normal;
  }

  .terms-page {
    gap: 0.9375rem;
  }

  .terms-page__title {
    gap: 0.625rem;
  }

  .terms-page__title-icon {
    width: 1.875rem;
    height: 1.875rem;
  }

  .terms-page__title-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: normal;
  }

  .terms-page__sections {
    gap: 0.9375rem;
  }

  .terms-section {
    gap: 0.625rem;
    padding: 1.25rem;
    border-radius: 1.5625rem;
  }

  .terms-section__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: normal;
  }

  .terms-section__text {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: normal;
  }
}
