/* ============================================================
   TIRTH CONNECT — Privacy Policy Stylesheet
   Modern, bright, spiritual layout with responsive TOC sidebar
   ============================================================ */

/* ─── Hero Section ─── */
.privacy-hero {
  position: relative;
  padding: 120px 0 50px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 240, 226, 0.7) 0%, rgba(254, 246, 238, 0) 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--saffron-pale);
  color: var(--saffron-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 107, 0, 0.2);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-xs);
}

.privacy-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.privacy-tagline {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--gold-dark);
  margin-bottom: 1.2rem;
}

.privacy-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
}

.privacy-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.privacy-meta-tag.effective-date {
  color: var(--saffron-dark);
  border-color: rgba(255, 107, 0, 0.3);
  background: #FFF8F2;
}

/* ─── Highlights / Trust Cards ─── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.trust-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.trust-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.trust-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Main Content Grid (TOC + Sections) ─── */
.policy-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* ─── Sticky Table of Contents Sidebar ─── */
.policy-sidebar {
  position: sticky;
  top: 90px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Search input inside TOC */
.toc-search-wrap {
  position: relative;
  margin-bottom: 0.85rem;
}

.toc-search-wrap input {
  width: 100%;
  padding: 0.45rem 0.85rem 0.45rem 2rem;
  font-size: 0.82rem;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--text);
  outline: none;
  transition: 0.2s var(--ease);
}

.toc-search-wrap input:focus {
  border-color: var(--saffron);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.toc-search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-light);
  pointer-events: none;
}

.toc-nav {
  overflow-y: auto;
  padding-right: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toc-nav::-webkit-scrollbar {
  width: 5px;
}
.toc-nav::-webkit-scrollbar-track {
  background: transparent;
}
.toc-nav::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
.toc-nav::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: 0.2s var(--ease);
  line-height: 1.35;
}

.toc-link:hover {
  background: var(--saffron-pale);
  color: var(--saffron-dark);
}

.toc-link.active {
  background: linear-gradient(90deg, var(--saffron-pale), rgba(255, 240, 226, 0.4));
  color: var(--saffron-dark);
  font-weight: 700;
  border-left: 3px solid var(--saffron);
}

.toc-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  min-width: 1.35rem;
}

.toc-link.active .toc-num {
  color: var(--saffron-dark);
}

.toc-empty-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem 0;
  display: none;
}

/* ─── Policy Content Stream ─── */
.policy-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Introduction / Preamble Card */
.policy-preamble-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF9 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.policy-preamble-card p {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.policy-preamble-card p:last-child {
  margin-bottom: 0;
}

/* Individual Policy Section Card */
.policy-section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  scroll-margin-top: 90px;
}

.policy-section-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hover);
}

.section-header-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(240, 224, 208, 0.7);
}

.section-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.25);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.policy-body p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

/* Custom Bullet List */
.policy-checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.policy-checklist li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.6;
}

.policy-checklist li::before {
  content: "✦";
  position: absolute;
  left: 0.25rem;
  top: 0.05rem;
  color: var(--saffron);
  font-size: 0.85rem;
}

/* Specialized Callout Box */
.policy-callout {
  background: var(--cream);
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: var(--radius);
  padding: 1.15rem 1.4rem;
  margin: 1.25rem 0 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.policy-callout.saffron-callout {
  background: var(--saffron-pale);
  border-color: rgba(255, 107, 0, 0.25);
}

.callout-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.callout-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.callout-text strong {
  color: var(--saffron-dark);
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
}

/* Contact Card (Section 20) */
.contact-highlight-card {
  background: linear-gradient(135deg, #FFFDF8 0%, #FFF3E4 100%);
  border: 2px solid rgba(212, 168, 83, 0.4);
}

.contact-highlight-card .contact-details-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
}

.contact-row .c-label {
  font-weight: 700;
  color: var(--text-dark);
  min-width: 80px;
}

.contact-row a {
  color: var(--saffron);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-row a:hover {
  color: var(--saffron-dark);
}

.spiritual-signoff {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
  text-align: center;
}

.spiritual-signoff .brand-line {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.spiritual-signoff .tagline-line {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.spiritual-signoff .copyright-line {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Breadcrumb ─── */
.policy-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.policy-breadcrumb a {
  color: var(--text-muted);
}

.policy-breadcrumb a:hover {
  color: var(--saffron);
}

.policy-breadcrumb span.sep {
  color: var(--text-light);
}

.policy-breadcrumb span.current {
  color: var(--saffron-dark);
  font-weight: 600;
}

/* ─── Responsive Styles ─── */
@media (max-width: 992px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .policy-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .policy-sidebar {
    position: static;
    max-height: none;
    order: 2;
  }

  .toc-nav {
    max-height: 280px;
  }
}

@media (max-width: 768px) {
  .privacy-hero {
    padding: 100px 0 40px;
  }

  .privacy-title {
    font-size: 2.1rem;
  }

  .privacy-tagline {
    font-size: 1.15rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .policy-preamble-card,
  .policy-section-card {
    padding: 1.35rem 1.15rem;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .section-badge-pill {
    min-width: 1.9rem;
    height: 1.9rem;
    font-size: 0.8rem;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* ─── Print Styles ─── */
@media print {
  .navbar, .footer, .policy-sidebar, .trust-grid, .btt, .privacy-meta-row {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .policy-layout {
    display: block !important;
  }

  .policy-section-card {
    border: none !important;
    box-shadow: none !important;
    padding: 1rem 0 !important;
    page-break-inside: avoid;
  }
}
