/* ============================================================
   PURNIMA — Policy / legal page styles
   Shared by privacy-policy.html, return-policy.html,
   refund-policy.html and shipping-policy.html.
   Reuses the tokens defined in styles.css.
   ============================================================ */

.policy-head {
  padding: 78px 6vw 46px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.policy-head::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 120px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.policy-eyebrow {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  font-size: 14px;
  margin-bottom: 12px;
}
.policy-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 14px;
}
.policy-meta {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
}

.policy-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 54px 6vw 90px;
}

/* Table of contents */
.policy-toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-sm);
}
.policy-toc h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  margin: 0 0 14px;
  color: var(--ink);
}
.policy-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
.policy-toc li {
  font-family: var(--sans);
  font-size: 15px;
  margin-bottom: 7px;
  break-inside: avoid;
}
.policy-toc a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.policy-toc a:hover {
  color: var(--wine);
  border-bottom-color: var(--gold);
}

/* Body content */
.policy-body {
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.78;
}
.policy-body section {
  margin-bottom: 46px;
  scroll-margin-top: 100px;
}
.policy-body h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(23px, 3vw, 29px);
  color: var(--ink);
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.policy-body h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  margin: 26px 0 8px;
  letter-spacing: 0.01em;
}
.policy-body p { margin: 0 0 15px; }
.policy-body ul,
.policy-body ol { margin: 0 0 16px; padding-left: 24px; }
.policy-body li { margin-bottom: 9px; }
.policy-body strong { color: var(--ink); font-weight: 700; }
.policy-body a {
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
}
.policy-body a:hover { border-bottom-color: var(--wine); }

/* Callout box for the important bits (refund windows, exclusions…) */
.policy-note {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 15.5px;
}
/* Only the leading <strong> acts as the callout heading; inline <strong>
   further down the note must stay inline. */
.policy-note > strong:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--wine-deep);
}
.policy-note p:last-child { margin-bottom: 0; }
.policy-note.warn {
  background: #fdece7;
  border-left-color: var(--wine);
}

/* Data tables (shipping charges, refund timelines) */
.policy-table-wrap {
  overflow-x: auto;
  margin: 20px 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}
.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 15px;
  min-width: 480px;
}
.policy-table thead th {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: #fff8f0;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  letter-spacing: 0.03em;
  font-size: 14px;
  text-transform: uppercase;
}
.policy-table tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  vertical-align: top;
}
.policy-table tbody tr:nth-child(even) { background: #fffaf3; }
.policy-table tbody td:first-child { font-weight: 700; color: var(--ink); }
.policy-table .free { color: #2d6a4f; font-weight: 800; }

/* Contact card at the end of each policy */
.policy-contact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  margin-top: 12px;
}
.policy-contact h3 { margin-top: 0; }
.policy-contact address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Cross-links to the other policies */
.policy-related {
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}
.policy-related h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 16px;
}
.policy-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.policy-related-grid a {
  display: block;
  padding: 15px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.policy-related-grid a:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.policy-related-grid span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 3px;
}

/* Simple back-to-shop bar in place of the full site nav */
.policy-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 6vw;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.policy-topbar .logo { text-decoration: none; }
.policy-back {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--wine);
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.policy-back:hover { background: var(--wine); color: #fff8f0; border-color: var(--wine); }

@media (max-width: 640px) {
  .policy-toc ol { columns: 1; }
  .policy-head { padding-top: 48px; }
  .policy-body { font-size: 16px; }
}
