/* ═══════════════════════════════════════════════════════════════════════
   DETANGLE — Pages (Help Center, Terms, Privacy)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Legal Pages (Terms & Privacy) ─────────────────────────────────── */
.legal-page {
  padding: 120px 0 60px;
  min-height: 80vh;
}
.legal-header {
  margin-bottom: 40px;
}
.legal-header h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.legal-updated {
  font-size: 13px;
  color: #888;
}
.legal-content {
  max-width: 760px;
}
.legal-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #f0ebe6;
}
.legal-section:last-child {
  border-bottom: none;
}
.legal-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.legal-section p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}
.legal-section a {
  color: #D19371;
  font-weight: 500;
}
.legal-section a:hover {
  text-decoration: underline;
}

/* ── Back Link ─────────────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #D19371;
  margin-bottom: 20px;
  transition: opacity 0.3s;
}
.back-link:hover {
  opacity: 0.7;
}
.back-link i, .back-link svg {
  width: 16px;
  height: 16px;
}

/* ── Help Center Page ──────────────────────────────────────────────── */
.help-page {
  padding: 120px 0 60px;
  min-height: 80vh;
}
.help-header {
  text-align: center;
  margin-bottom: 40px;
}
.help-header .back-link {
  display: inline-flex;
  margin-bottom: 24px;
}
.help-header h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.help-header p {
  font-size: 15px;
  color: #888;
  margin-bottom: 24px;
}

/* Search */
.help-search {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.help-search i, .help-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #999;
  stroke: #999;
}
.help-search input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border-radius: 14px;
  border: 1px solid #e8e0da;
  background: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.help-search input:focus {
  border-color: #D19371;
  box-shadow: 0 0 0 3px rgba(209, 147, 113, 0.1);
}

/* FAQ Tabs */
.faq-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.faq-tab {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid #e8e0da;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}
.faq-tab:hover {
  border-color: #D19371;
  color: #D19371;
}
.faq-tab.active {
  background: #D19371;
  color: #fff;
  border-color: #D19371;
}

/* FAQ List */
.faq-list {
  max-width: 720px;
  margin: 0 auto 48px;
}
.faq-item {
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid #f0ebe6;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s;
}
.faq-item:hover {
  border-color: #e0d4cc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.faq-question {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
}
.faq-question span {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}
.faq-question i, .faq-question svg {
  width: 18px;
  height: 18px;
  color: #D19371;
  stroke: #D19371;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-question i,
.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s;
  padding: 0 20px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}
.faq-answer p {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
}
.faq-answer a {
  color: #D19371;
  font-weight: 500;
}

/* Contact Section */
.help-contact-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.help-contact-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: #f9f6f3;
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: all 0.4s;
}
.help-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(209, 147, 113, 0.08);
  background: #fff;
}
.help-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(209, 147, 113, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.help-contact-icon i, .help-contact-icon svg {
  width: 22px;
  height: 22px;
  color: #D19371;
  stroke: #D19371;
}
.help-contact-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.help-contact-card p {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 12px;
}
.help-contact-link {
  font-size: 14px;
  font-weight: 600;
  color: #D19371;
  transition: opacity 0.3s;
}
.help-contact-link:hover {
  opacity: 0.7;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .legal-header h1, .help-header h1 {
    font-size: 28px;
  }
  .help-contact-section {
    grid-template-columns: 1fr;
  }
  .faq-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  .faq-tab {
    white-space: nowrap;
  }
}
