.faq-page .legal-document {
  width: min(1080px, calc(100% - 40px));
}

.faq-hero {
  margin: -8px 0 42px;
  text-align: center;
}

.faq-eyebrow {
  margin: 0 0 12px;
  color: #ff4b47;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.faq-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
}

.faq-intro {
  max-width: 760px;
  margin: 18px auto 0 !important;
  color: #666d7a !important;
  font-size: 17px;
}

.faq-tools {
  position: sticky;
  top: 88px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin: 0 0 38px;
  padding: 14px;
  border: 1px solid #e8ebf2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(47, 57, 78, 0.08);
  backdrop-filter: blur(12px);
}

.faq-search {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #dfe3ec;
  border-radius: 12px;
  outline: none;
  background: #f8f9fc;
  color: #25272d;
  font: inherit;
}

.faq-search:focus {
  border-color: #ff7c78;
  box-shadow: 0 0 0 4px rgba(255, 75, 71, 0.1);
}

.faq-tool-buttons {
  display: flex;
  gap: 8px;
}

.faq-tool-buttons button {
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #eef1f7;
  color: #353841;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.faq-tool-buttons button:hover {
  background: #e4e8f0;
}

.faq-result-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0 !important;
  padding: 0 4px;
  color: #777e8b !important;
  font-size: 14px;
}

.faq-section {
  margin: 0 0 42px;
  scroll-margin-top: 165px;
}

.faq-section > h2 {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 4px solid #ff4b47;
  font-size: 25px;
}

.faq-item {
  margin: 0 0 12px;
  border: 1px solid #e5e8ef;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  scroll-margin-top: 170px;
}

.faq-item[open] {
  border-color: #ffd1cf;
  box-shadow: 0 8px 22px rgba(255, 75, 71, 0.07);
}

.faq-item summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  color: #25272d;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
}

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

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  color: #ff4b47;
  content: "+";
  font-size: 27px;
  font-weight: 400;
  transform: translateY(-50%);
}

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

.faq-answer {
  padding: 0 22px 22px;
  border-top: 1px solid #f0f1f5;
}

.faq-answer p {
  margin: 16px 0 0;
  color: #4f5561 !important;
}

.faq-answer a {
  font-weight: 600;
}

.faq-no-results {
  margin: 20px 0 0;
  padding: 30px;
  border-radius: 14px;
  background: #f8f9fc;
  color: #6f7480;
  text-align: center;
}

.faq-closing {
  margin-top: 54px;
  padding: 28px 30px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff3f2, #f5f7ff);
}

.faq-closing h2 {
  margin-top: 0;
}

@media (max-width: 720px) {
  .faq-tools {
    position: static;
    grid-template-columns: 1fr;
  }

  .faq-tool-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .faq-result-status {
    grid-column: 1;
  }

  .faq-section > h2 {
    font-size: 22px;
  }

  .faq-item summary {
    padding: 18px 48px 18px 18px;
    font-size: 16px;
  }

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