/* Cardvity Help & Policy Pages Styles */
html {
  scroll-behavior: smooth;
}
.help-page {
  max-width: 1160px;
  margin-inline: auto;
  padding-block: 40px 72px;
  color: #252525;
}

/* Fallback / FAQ Header */
.help-page > span {
  font-size: 11px;
  letter-spacing: .16em;
  color: #8d1724;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.help-page > h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 10px 0 14px;
  line-height: 1.35;
  font-family: 'Alexandria', sans-serif;
  color: #221e1c;
}
.help-page > p {
  color: #6a635d;
  line-height: 1.85;
  max-width: 720px;
  margin-bottom: 36px;
  font-size: 15px;
}

/* ✦ Luxury Policy Hero Section */
.policy-hero {
  background: linear-gradient(180deg, #fffdfb 0%, #faf6f2 100%);
  border: 1px solid #ebdcd5;
  border-radius: 24px;
  padding: 36px 40px;
  margin-bottom: 40px;
  box-shadow: 0 6px 24px rgba(67, 5, 18, 0.03);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.policy-hero::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #8d1724 0%, #d898a1 100%);
}
.policy-hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.policy-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fdf2f3;
  border: 1px solid #f2d4d8;
  color: #8d1724;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.policy-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8d1724;
  animation: policyPulse 2s infinite ease-in-out;
}
@keyframes policyPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.2); }
}
.policy-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7f746d;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
}
.policy-updated-badge svg {
  stroke: #8d1724;
}
.policy-hero-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: #221e1c;
  margin: 0 0 12px;
  line-height: 1.35;
  font-family: 'Alexandria', sans-serif;
  letter-spacing: -0.015em;
}
.policy-hero-desc {
  font-size: 15px;
  line-height: 1.9;
  color: #5e5751;
  max-width: 760px;
  margin: 0 0 28px;
}

/* Trust / Assurance Grid */
.policy-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(235, 220, 213, 0.7);
}
.policy-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #ebdcd5;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.policy-trust-item:hover {
  transform: translateY(-2px);
  border-color: #d8c2b8;
  box-shadow: 0 6px 16px rgba(67, 5, 18, 0.04);
}
.policy-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fdf2f3;
  color: #8d1724;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.policy-trust-icon svg {
  width: 20px;
  height: 20px;
  stroke: #8d1724;
}
.policy-trust-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #221e1c;
  margin-bottom: 2px;
  font-family: 'Alexandria', sans-serif;
}
.policy-trust-text p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #7f746d;
}

/* ✦ Main Layout */
.help-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* ✦ Right Sidebar & Table of Contents */
.policy-sidebar {
  position: sticky;
  top: 90px;
  z-index: 10;
  min-width: 0;
}
.policy-nav-card {
  background: #ffffff;
  border: 1px solid #ebdcd5;
  border-radius: 20px;
  padding: 18px 14px;
  box-shadow: 0 8px 30px rgba(67, 5, 18, 0.04);
  min-width: 0;
}
.policy-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 14px;
  border-bottom: 1px solid #f0e6e1;
  margin-bottom: 10px;
}
.policy-nav-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #221e1c;
  font-family: 'Alexandria', sans-serif;
}
.policy-nav-head-title svg {
  width: 16px;
  height: 16px;
  stroke: #8d1724;
}
.policy-nav-count-badge {
  font-size: 11px;
  font-weight: 700;
  background: #f7ede9;
  color: #8d1724;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
}
.policy-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ebdcd5 transparent;
  padding-inline-end: 2px;
}
.policy-nav-list::-webkit-scrollbar {
  width: 4px;
}
.policy-nav-list::-webkit-scrollbar-thumb {
  background: #ebdcd5;
  border-radius: 4px;
}
.policy-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #5a534e;
  font-size: 13px;
  font-weight: 500;
  transition: all .18s ease;
  border: 1px solid transparent;
  position: relative;
}
.policy-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f5ece7;
  color: #736963;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  flex-shrink: 0;
  transition: all .18s ease;
}
.policy-nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  font-family: 'Alexandria', sans-serif;
}
.policy-nav-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  transition: all .18s ease;
}
.policy-nav-link:hover {
  background: #fbf5f4;
  color: #8d1724;
  border-color: #f6e2e5;
}
.policy-nav-link:hover .policy-nav-badge {
  background: #f7e0e3;
  color: #8d1724;
}
.policy-nav-link.active {
  background: #fcf1f3;
  border-color: #f0cdd2;
  color: #8d1724;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(141, 23, 36, 0.05);
}
.policy-nav-link.active .policy-nav-badge {
  background: #8d1724;
  color: #ffffff;
}
.policy-nav-link.active .policy-nav-indicator {
  background: #8d1724;
}

/* Sidebar Support Widget */
.policy-sidebar-support {
  margin-top: 14px;
  padding: 14px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbf7f4 0%, #f6eee9 100%);
  border: 1px dashed #dfcfc7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.policy-support-bubble {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  color: #8d1724;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.policy-support-bubble svg {
  width: 15px;
  height: 15px;
  stroke: #8d1724;
}
.policy-support-text strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #221e1c;
  font-family: 'Alexandria', sans-serif;
}
.policy-support-text p {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #7a7069;
}
.policy-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #8d1724;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  transition: background .18s ease, transform .18s ease;
}
.policy-support-btn:hover {
  background: #6e111c;
  transform: translateY(-1px);
}
.policy-support-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* ✦ Policy Content Column & Cards */
.policy-content-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.help-item.policy-card {
  background: #ffffff;
  border: 1px solid #ebdcd5;
  border-radius: 20px;
  padding: 30px 34px;
  box-shadow: 0 4px 16px rgba(67, 5, 18, 0.02);
  scroll-margin-top: 105px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  min-width: 0;
}
.help-item.policy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(67, 5, 18, 0.05);
  border-color: #dfcec5;
}
.policy-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f2e9e4;
}
.policy-card-start {
  display: flex;
  align-items: center;
  gap: 14px;
}
.policy-card-num-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #fdf4f5 0%, #f7e2e5 100%);
  border: 1px solid #f0d0d5;
  color: #8d1724;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(141, 23, 36, 0.06);
}
.policy-card-titles h2 {
  font-size: 19px;
  font-weight: 700;
  color: #221e1c;
  margin: 0;
  line-height: 1.35;
  font-family: 'Alexandria', sans-serif;
}
.policy-card-sub {
  display: block;
  font-size: 11px;
  color: #8e837d;
  margin-top: 2px;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
}
.policy-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fbf5f2;
  border: 1px solid #e8dbd3;
  color: #786b62;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Alexandria', sans-serif;
  flex-shrink: 0;
  letter-spacing: .01em;
}
.policy-card-body p {
  font-size: 15px;
  line-height: 2.0;
  color: #4e4641;
  margin: 0 0 14px;
}
.policy-card-body p:last-child {
  margin-bottom: 0;
}

/* Callout Notice Boxes */
.policy-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  margin-top: 18px;
}
.policy-notice-box.warning {
  background: #fdf5f5;
  border: 1px solid #f5d4d7;
  color: #8c1826;
}
.policy-notice-box.info {
  background: #f4f8fb;
  border: 1px solid #d7e8f1;
  color: #1a5775;
}
.policy-notice-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.policy-notice-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.policy-notice-content strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: 'Alexandria', sans-serif;
}
.policy-notice-content p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
  color: inherit !important;
}

/* ✦ FAQ Page Layout */
.help-faq {
  display: block;
  max-width: 850px;
}
.help-faq .help-item {
  background: #ffffff;
  border: 1px solid #ebdcd5;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color .18s ease;
}
.help-faq .help-item:hover {
  border-color: #d8c4ba;
}
.help-item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #252525;
  line-height: 1.6;
  font-family: 'Alexandria', sans-serif;
}
.help-item summary::marker {
  color: #8d1724;
}
.help-faq .help-item p {
  font-size: 14px;
  line-height: 1.9;
  color: #5a534e;
  margin: 14px 0 0;
}

/* Policy Consent (Checkout) */
.policy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.9;
  margin: 20px 0;
}
.policy-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: #8d1724;
  margin-top: 4px;
}
.policy-consent a {
  color: #8d1724;
  text-decoration: underline;
}
.help-page a:focus-visible,
.help-item summary:focus-visible {
  outline: 2px solid #8d1724;
  outline-offset: 4px;
}

/* ✦ Responsive Breakpoints */
@media (max-width: 960px) {
  .help-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
  }
  .policy-trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .help-page {
    padding-block: 28px 48px;
  }
  .policy-hero {
    padding: 24px 20px;
    border-radius: 18px;
    margin-bottom: 24px;
  }
  .policy-hero-title {
    font-size: 24px;
  }
  .policy-hero-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .help-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .policy-sidebar {
    position: static;
  }
  .policy-nav-card {
    padding: 12px 14px;
    border-radius: 16px;
  }
  .policy-nav-head {
    padding-bottom: 10px;
    margin-bottom: 8px;
  }
  .policy-nav-list {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 6px;
    max-height: none;
  }
  .policy-nav-list::-webkit-scrollbar {
    display: none;
  }
  .policy-nav-link {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #ebdcd5;
    background: #ffffff;
    font-size: 12px;
  }
  .policy-nav-indicator {
    display: none;
  }
  .policy-sidebar-support {
    display: none;
  }
  .help-item.policy-card {
    padding: 20px 18px;
    border-radius: 16px;
  }
  .policy-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
  }
  .policy-card-num-badge {
    width: 38px;
    height: 38px;
    font-size: 15px;
    border-radius: 10px;
  }
  .policy-card-titles h2 {
    font-size: 17px;
  }
  .policy-topic-pill {
    align-self: flex-start;
    font-size: 11px;
    padding: 4px 10px;
  }
  .policy-card-body p {
    font-size: 14px;
  }
  .policy-notice-box {
    padding: 12px 14px;
  }
  .help-faq .help-item {
    padding: 16px 18px;
  }
}

