/* ==========================================================================
   BHUMIVOX — LEGAL & POLICY PAGES STYLESHEET (assets/css/policy.css)
   Applies to: Cancellation & Refund Policy, Privacy Policy, Terms & Conditions,
   Cookies Policy, and Legal Disclaimer.
   Harmonized with global luxury design system, compact section cards, & modern typography
   ========================================================================== */

:root {
  --policy-bg: #faf6f0;
  --policy-card-bg: #ffffff;
  --policy-border: #ede4d8;
  --policy-border-subtle: #f4ede3;
  --policy-text: #2c2724;
  --policy-text-muted: #6b6158;
  --policy-primary: #803425;
  --policy-primary-hover: #662619;
  --policy-gold: #c4a482;
  --policy-gold-dark: #967652;
}

/* Base Policy Main Layout */
.policy-main,
.policy-page {
  padding-top: calc(var(--actual-header-height, var(--header-total-height, 104px)) + 1.25rem);
  padding-bottom: 5rem;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--policy-bg);
  min-height: 80vh;
}

.bv-policy-container,
.policy-page__container {
  max-width: var(--container-max, 1380px);
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* ==========================================================================
   1. HERO BANNER CARD (Compact Luxury Header)
   ========================================================================== */
.policy-hero-card,
.policy-header {
  position: relative;
  background: linear-gradient(135deg, #24130c 0%, #3e1b12 50%, #1c0d08 100%);
  border: 1px solid rgba(196, 164, 130, 0.32);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(35, 17, 10, 0.25);
  overflow: hidden;
  color: #ffffff;
  padding: 2.5rem 2.25rem;
  box-sizing: border-box;
}

.policy-hero-card::before,
.policy-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(196, 164, 130, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.policy-hero-card__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.policy-breadcrumbs {
  margin-bottom: 0.25rem;
}

.policy-breadcrumbs__link {
  font-family: var(--font-heading, 'Hanken Grotesk', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--policy-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.policy-breadcrumbs__link:hover {
  transform: translateX(-3px);
  color: #ffffff;
}

.policy-hero-card__badge,
.policy-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading, 'Hanken Grotesk', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--policy-gold);
  background: rgba(196, 164, 130, 0.14);
  border: 1px solid rgba(196, 164, 130, 0.35);
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  width: fit-content;
}

.policy-hero-card__title,
.policy-header__title {
  font-family: var(--font-heading, 'Hanken Grotesk', sans-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0;
}

.policy-hero-card__meta,
.policy-header__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.2rem;
}

.policy-hero-card__meta strong,
.policy-header__meta strong {
  color: #ffffff;
}

.policy-hero-card__divider,
.policy-header__divider {
  color: var(--policy-gold);
}

.policy-hero-card__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* ==========================================================================
   2. CALLOUT BOXES & COMPLIANCE NOTES
   ========================================================================== */
.policy-callout {
  background: #ffffff;
  border: 1px solid var(--policy-border);
  border-left: 4px solid var(--policy-primary);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--policy-text);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(35, 31, 28, 0.04);
}

.policy-callout p {
  margin: 0;
}

.policy-callout--gold {
  border-left-color: var(--policy-gold);
  background: #fdfbf7;
}

.policy-callout--warning {
  border-left-color: #b91c1c;
  background: #fff8f8;
}

/* ==========================================================================
   3. TABLE OF CONTENTS / QUICK JUMP DRAWER
   ========================================================================== */
.policy-quick-toc,
.policy-toc-card {
  background: #ffffff;
  border: 1px solid var(--policy-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(35, 31, 28, 0.03);
}

.policy-quick-toc summary,
.policy-toc-card summary {
  font-family: var(--font-heading, 'Hanken Grotesk', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--policy-primary);
  cursor: pointer;
  outline: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.policy-quick-toc summary::after {
  content: '▾';
  font-size: 1.1rem;
  color: var(--policy-gold);
  transition: transform 0.2s ease;
}

.policy-quick-toc[open] summary::after {
  transform: rotate(180deg);
}

.policy-quick-toc-grid,
.policy-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--policy-border-subtle);
}

.policy-quick-toc-link,
.policy-toc-link {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.84rem;
  color: var(--policy-text-muted);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.policy-quick-toc-link:hover,
.policy-toc-link:hover {
  color: var(--policy-primary);
  background-color: #fcf8f3;
  transform: translateX(3px);
}

/* ==========================================================================
   4. SECTION-STYLE LUXURY CARDS (.policy-section / .policy-clause)
   ========================================================================== */
.policy-body {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.policy-section,
.policy-clause {
  background: var(--policy-card-bg);
  border: 1px solid var(--policy-border);
  border-radius: 12px;
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 12px rgba(35, 31, 28, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.policy-section:hover,
.policy-clause:hover {
  border-color: #dfd2c0;
  box-shadow: 0 4px 18px rgba(35, 31, 28, 0.06);
}

.policy-section__title,
.policy-clause__title {
  font-family: var(--font-heading, 'Hanken Grotesk', sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--policy-primary);
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--policy-border-subtle);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.policy-section__title .clause-num,
.policy-clause__title .clause-num {
  color: var(--policy-gold);
  font-size: 1.1rem;
}

.policy-section__subtitle {
  font-family: var(--font-heading, 'Hanken Grotesk', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #24130c;
  margin: 1.35rem 0 0.5rem 0;
}

.policy-section p,
.policy-clause p {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--policy-text);
  margin: 0 0 0.95rem 0;
}

.policy-section p:last-child,
.policy-clause p:last-child {
  margin-bottom: 0;
}

.policy-text--muted {
  color: var(--policy-text-muted) !important;
  font-size: 0.88rem !important;
}

/* Styled Lists */
.policy-list,
.policy-section ul,
.policy-section ol {
  margin: 0.75rem 0 1rem 0;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.policy-list li,
.policy-section li {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--policy-text);
}

.policy-list li strong,
.policy-section li strong {
  color: #1a120e;
}

/* Links inside Policy text */
.policy-link {
  color: var(--policy-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2.5px;
  transition: color 0.2s ease;
}

.policy-link:hover {
  color: var(--policy-primary-hover);
}

/* ==========================================================================
   5. ACTION CARD / DIRECT ROUTE BANNER (Replaces raw form on Policy pages)
   ========================================================================== */
.policy-action-card {
  background: linear-gradient(135deg, #fffaf3 0%, #f6ece0 100%);
  border: 1.5px solid var(--policy-border);
  border-radius: 12px;
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 18px rgba(35, 31, 28, 0.04);
}

.policy-action-card__content {
  flex: 1;
  min-width: 280px;
}

.policy-action-card__title {
  font-family: var(--font-heading, 'Hanken Grotesk', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--policy-primary);
  margin: 0 0 0.5rem 0;
}

.policy-action-card__desc {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--policy-text);
  margin: 0;
}

.policy-action-card__btn {
  background: linear-gradient(135deg, #803425 0%, #a04632 100%);
  color: #ffffff !important;
  font-family: var(--font-heading, 'Hanken Grotesk', sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.85rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(128, 52, 37, 0.22);
  white-space: nowrap;
}

.policy-action-card__btn:hover {
  background: linear-gradient(135deg, #6b281b 0%, #883522 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(128, 52, 37, 0.32);
}

/* ==========================================================================
   6. POLICY TABLES (Responsive Luxury Design)
   ========================================================================== */
.policy-table-wrap,
.policy-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 8px;
  border: 1px solid var(--policy-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.88rem;
  text-align: left;
}

.policy-table th {
  background: #f7f1e7;
  border-bottom: 1.5px solid var(--policy-border);
  padding: 0.85rem 1.15rem;
  font-family: var(--font-heading, 'Hanken Grotesk', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--policy-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.policy-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--policy-border-subtle);
  color: var(--policy-text);
  line-height: 1.55;
}

.policy-table tr:last-child td {
  border-bottom: none;
}

.policy-table tr:hover td {
  background-color: #fdfaf5;
}

/* ==========================================================================
   7. FOOTER NOTE & ACCREDITATION
   ========================================================================== */
.policy-footer-note {
  background: #f4ede2;
  border: 1px solid #e5dbcd;
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  text-align: center;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.86rem;
  color: var(--policy-text-muted);
  margin-top: 2rem;
  line-height: 1.65;
}

.policy-footer-note p {
  margin: 0 0 0.35rem 0;
}

.policy-footer-note p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   8. RESPONSIVE REFINEMENTS
   ========================================================================== */
@media (max-width: 768px) {
  .policy-main,
  .policy-page {
    padding-top: calc(var(--actual-header-height, var(--header-total-height, 90px)) + 1rem);
    padding-bottom: 3.5rem;
  }

  .bv-policy-container,
  .policy-page__container {
    padding: 0 1rem;
  }

  .policy-hero-card,
  .policy-header {
    padding: 1.75rem 1.25rem;
    border-radius: 10px;
  }

  .policy-section,
  .policy-clause {
    padding: 1.35rem 1.15rem;
    border-radius: 10px;
  }

  .policy-section__title,
  .policy-clause__title {
    font-size: 1.15rem;
  }

  .policy-action-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
  }

  .policy-action-card__btn {
    width: 100%;
    justify-content: center;
  }

  .policy-quick-toc-grid,
  .policy-toc-grid {
    grid-template-columns: 1fr;
  }
}
