/* =========================================================
   Sastha Traders — Shared styles for Policy pages
   Used by: terms, privacy, refund, shipping, returns
   ========================================================= */

/* ---------- Hero ---------- */
.pol-hero {
  padding: 72px 0 64px;
  background: linear-gradient(135deg, #20264f 0%, #2d3566 48%, #3a2568 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pol-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -8%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(227,79,152,0.36), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.pol-hero::after {
  content: '';
  position: absolute;
  bottom: -45%; left: -10%;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(217,184,79,0.20), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.pol-hero .container { position: relative; z-index: 2; }
.pol-hero .eyebrow-pill {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #ffd1e6;
  background: rgba(227,79,152,0.22);
  padding: 7px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
}
.pol-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #fff;
  line-height: 1.1;
}
.pol-hero .pol-updated {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.pol-hero .pol-updated .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d9b84f;
}

/* ---------- Layout ---------- */
.pol-wrap {
  padding: 60px 0 90px;
  background: #fffafc;
}
.pol-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: start;
}

/* ---------- TOC sidebar ---------- */
.pol-toc {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid #f0eaf3;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 4px 14px rgba(32,38,79,0.04);
}
.pol-toc-title {
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #a2a8bd;
}
.pol-toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 60vh;
  overflow-y: auto;
}
.pol-toc-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #5b6178;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  border-left: 2px solid transparent;
  line-height: 1.4;
}
.pol-toc-link:hover {
  background: #fdf6fb;
  color: #e34f98;
}
.pol-toc-link.active {
  background: #fdf6fb;
  color: #e34f98;
  border-left-color: #e34f98;
  font-weight: 800;
}
.pol-toc-help {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed #f0eaf3;
}
.pol-toc-help p {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #7a8095;
  line-height: 1.55;
}
.pol-toc-help a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e34f98;
  font-weight: 800;
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.18s ease;
}
.pol-toc-help a:hover { color: #c73f83; }

/* ---------- Content card ---------- */
.pol-card {
  background: #fff;
  border: 1px solid #f0eaf3;
  border-radius: 22px;
  padding: 42px 48px;
  box-shadow: 0 8px 30px rgba(32,38,79,0.06);
  position: relative;
  overflow: hidden;
}
.pol-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, #e34f98 0%, #d9b84f 100%);
}

/* ---------- Content typography ---------- */
.pol-content {
  color: #4a5068;
  font-size: 0.97rem;
  line-height: 1.8;
}
.pol-content h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 44px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f5eaf1;
  color: #20264f;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.35;
  scroll-margin-top: 100px;
}
.pol-content h2:first-child { margin-top: 0; }
.pol-content h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #e34f98 0%, #c73f83 100%);
  border-radius: 2px;
  flex: 0 0 auto;
}
.pol-content h3 {
  margin: 28px 0 10px;
  color: #20264f;
  font-size: 1.02rem;
  font-weight: 800;
}
.pol-content p { margin: 0 0 14px; }
.pol-content p:last-child { margin-bottom: 0; }
.pol-content strong { color: #20264f; font-weight: 800; }
.pol-content em { color: #5b6178; font-style: italic; }

.pol-content a {
  color: #e34f98;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(227,79,152,0.30);
  transition: all 0.18s ease;
}
.pol-content a:hover {
  color: #c73f83;
  border-bottom-color: #c73f83;
}

.pol-content ul,
.pol-content ol {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}
.pol-content ol { counter-reset: ol-counter; }
.pol-content li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  line-height: 1.75;
}
.pol-content li:last-child { margin-bottom: 0; }

.pol-content ul li::before {
  content: '';
  position: absolute;
  left: 8px; top: 12px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e34f98;
  box-shadow: 0 0 0 3px rgba(227,79,152,0.14);
}
.pol-content ol li::before {
  counter-increment: ol-counter;
  content: counter(ol-counter);
  position: absolute;
  left: 0; top: 2px;
  min-width: 22px; height: 22px;
  background: #fdf6fb;
  color: #e34f98;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fae4ee;
}
.pol-content ol li { padding-left: 34px; }

/* Nested lists */
.pol-content li > ul,
.pol-content li > ol { margin-top: 8px; margin-bottom: 6px; }

/* Loading state */
.pol-loading {
  text-align: center;
  padding: 60px 20px;
  color: #7a8095;
}
.pol-loading .spinner {
  width: 32px; height: 32px;
  border: 3px solid #f0eaf3;
  border-top-color: #e34f98;
  border-radius: 50%;
  animation: pol-spin 0.8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes pol-spin { to { transform: rotate(360deg); } }
.pol-loading p { margin: 0; font-size: 0.9rem; }

/* ---------- Bottom CTA ---------- */
.pol-cta {
  margin-top: 60px;
  padding: 42px 46px;
  background: linear-gradient(135deg, #20264f 0%, #2d3566 55%, #3a2568 100%);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pol-cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(227,79,152,0.32), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.pol-cta-body { position: relative; z-index: 1; }
.pol-cta-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #ffd1e6;
  margin-bottom: 8px;
}
.pol-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.2px;
}
.pol-cta p {
  margin: 0;
  color: rgba(255,255,255,0.75);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 520px;
}
.pol-cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: #e34f98;
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 10px 24px rgba(227,79,152,0.30);
  white-space: nowrap;
}
.pol-cta-btn:hover {
  transform: translateY(-2px);
  background: #c73f83;
  box-shadow: 0 14px 30px rgba(227,79,152,0.40);
}

/* ---------- Back-to-top button ---------- */
.pol-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #20264f;
  color: #fff;
  border: 0;
  box-shadow: 0 10px 24px rgba(32,38,79,0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  z-index: 100;
  font-family: inherit;
}
.pol-top-btn.visible { opacity: 1; visibility: visible; }
.pol-top-btn:hover {
  background: #e34f98;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(227,79,152,0.35);
}

/* ---------- Reading progress ---------- */
.pol-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #e34f98 0%, #d9b84f 100%);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pol-hero { padding: 56px 0 50px; }
  .pol-wrap { padding: 44px 0 60px; }
  .pol-grid { grid-template-columns: 1fr; gap: 24px; }
  .pol-toc {
    position: static;
    padding: 20px 18px;
  }
  .pol-toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    max-height: none;
    overflow: visible;
  }
  .pol-toc-link {
    border-left: 0;
    border-radius: 20px;
    padding: 7px 13px;
    font-size: 0.8rem;
    background: #fbf9fc;
    border: 1px solid #f0eaf3;
  }
  .pol-toc-link.active {
    border-left: 0;
    background: #fdf6fb;
    border-color: #fae4ee;
  }
  .pol-card { padding: 32px 28px; border-radius: 18px; }
  .pol-content h2 { font-size: 1.1rem; }
  .pol-cta {
    grid-template-columns: 1fr;
    padding: 32px 28px;
    border-radius: 18px;
  }
  .pol-cta-btn { justify-self: flex-start; }
}
@media (max-width: 650px) {
  .pol-hero { padding: 46px 0 42px; }
  .pol-hero h1 { font-size: 1.85rem; }
  .pol-hero .pol-updated { font-size: 0.76rem; padding: 6px 12px; }
  .pol-wrap { padding: 32px 0 50px; }
  .pol-toc { padding: 16px 14px; border-radius: 14px; }
  .pol-toc-title { margin-bottom: 10px; }
  .pol-toc-link { font-size: 0.76rem; padding: 6px 11px; }
  .pol-card { padding: 26px 20px; border-radius: 16px; }
  .pol-content { font-size: 0.93rem; line-height: 1.75; }
  .pol-content h2 {
    font-size: 1.02rem;
    margin-top: 32px;
    padding-bottom: 10px;
    gap: 10px;
  }
  .pol-content h2::before { height: 16px; width: 3px; }
  .pol-content li { padding-left: 28px; }
  .pol-content ol li { padding-left: 30px; }
  .pol-cta { margin-top: 44px; padding: 26px 22px; }
  .pol-cta h2 { font-size: 1.15rem; }
  .pol-cta-btn { padding: 12px 22px; font-size: 0.86rem; }
  .pol-top-btn { right: 16px; bottom: 16px; width: 42px; height: 42px; font-size: 1rem; }
}