/* ═══════════════════════════════════════════════════════════════════════════
   PP Block: Page Content
   Used for: Privacy Policy · Terms & Conditions · Refund & Returns
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section Wrapper ────────────────────────────────────────────────────── */
.pp-page-content {
  padding: 70px 0 80px;
}

.pp-page-content--bg-cream {
  background-color: var(--bgcreame, #fef9f3);
}

.pp-page-content--bg-white {
  background-color: var(--white, #fff);
}

.pp-page-content__wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Page Header ────────────────────────────────────────────────────────── */
.pp-page-content__header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--border-cream, #f0e6d9);
}

/* Icon */
.pp-page-content__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  background-color: rgba(255, 87, 51, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 87, 51, 0.15);
}

.pp-page-content__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Label pill */
.pp-page-content__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange, #ff5733);
  background-color: rgba(255, 87, 51, 0.08);
  border: 1px solid rgba(255, 87, 51, 0.2);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  font-family: var(--global-font-family, "Poppins", sans-serif);
  line-height: 1.4;
}

/* Page title */
.pp-page-content__title {
  font-family: var(--global-heading-font, "Poppins", sans-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--blue, #2c3e50);
  margin: 0 0 12px;
  padding: 0;
  line-height: 1.2;
}

/* Subtitle */
.pp-page-content__subtitle {
  font-size: 16px;
  color: var(--grey, #6b7280);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 14px;
  font-family: var(--global-body-font-family, "Inter", sans-serif);
}

/* Last updated */
.pp-page-content__updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--grey, #6b7280);
  font-family: var(--global-body-font-family, "Inter", sans-serif);
  margin: 0;
  padding: 6px 14px;
  background: rgba(107, 114, 128, 0.07);
  border-radius: 50px;
}

.pp-page-content__updated svg {
  flex-shrink: 0;
  color: var(--orange, #ff5733);
}

/* ── Inner layout ───────────────────────────────────────────────────────── */
.pp-page-content__body-wrap {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* When no TOC, content takes full width */
.pp-page-content__body-wrap:not(.pp-page-content__body-wrap--has-toc) .pp-page-content__body {
  width: 100%;
}

/* ── Table of Contents ──────────────────────────────────────────────────── */
.pp-page-content__toc {
  flex: 0 0 220px;
  position: sticky;
  top: 100px;
}

.pp-page-content__toc-inner {
  background: var(--white, #fff);
  border: 1.5px solid var(--border-cream, #f0e6d9);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.pp-page-content__toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue, #2c3e50);
  font-family: var(--global-font-family, "Poppins", sans-serif);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border-cream, #f0e6d9);
}

.pp-page-content__toc-title svg {
  color: var(--orange, #ff5733);
  flex-shrink: 0;
}

.pp-page-content__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pp-page-content__toc-list li {
  counter-increment: toc-counter;
}

.pp-page-content__toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--grey, #6b7280);
  text-decoration: none;
  line-height: 1.5;
  padding: 5px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: var(--global-body-font-family, "Inter", sans-serif);
}

.pp-page-content__toc-list a::before {
  content: counter(toc-counter) ".";
  font-size: 12px;
  font-weight: 700;
  color: var(--orange, #ff5733);
  flex-shrink: 0;
  margin-top: 1px;
}

.pp-page-content__toc-list a:hover {
  background-color: rgba(255, 87, 51, 0.06);
  color: var(--orange, #ff5733);
}

/* ── WYSIWYG Content (Policy Prose) ─────────────────────────────────────── */
.pp-page-content__body {
  flex: 1;
  min-width: 0;
}

/* Global prose resets inside the content body */
.pp-policy-content {
  font-family: var(--global-body-font-family, "Inter", sans-serif);
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
}

.pp-policy-content h2,
.pp-policy-content h3,
.pp-policy-content h4,
.pp-policy-content h5,
.pp-policy-content h6 {
  font-family: var(--global-heading-font, "Poppins", sans-serif);
  color: var(--blue, #2c3e50);
  margin: 2em 0 0.6em;
  padding: 0;
  line-height: 1.3;
  scroll-margin-top: 100px;
}

.pp-policy-content h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-cream, #f0e6d9);
}

.pp-policy-content h3 {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--orange, #ff5733);
}

.pp-policy-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue, #2c3e50);
}

.pp-policy-content p {
  margin: 0 0 1.2em;
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
}

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

/* Lists */
.pp-policy-content ul,
.pp-policy-content ol {
  padding-left: 0;
  margin: 0 0 1.4em;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp-policy-content ul li,
.pp-policy-content ol li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
}

.pp-policy-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #374151;
  flex-shrink: 0;
}

.pp-policy-content ol {
  counter-reset: ol-counter;
}

.pp-policy-content ol li {
  counter-increment: ol-counter;
}

.pp-policy-content ol li::before {
  content: counter(ol-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--orange, #ff5733);
  font-size: 14px;
}

/* Links */
.pp-policy-content a {
  color: var(--orange, #ff5733);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.pp-policy-content a:hover {
  color: var(--blue, #2c3e50);
}

/* Blockquotes / highlighted notes */
.pp-policy-content blockquote {
  margin: 1.8em 0;
  padding: 18px 20px 18px 24px;
  border-left: 4px solid var(--orange, #ff5733);
  background-color: rgba(255, 87, 51, 0.04);
  border-radius: 0 10px 10px 0;
  font-style: normal;
}

.pp-policy-content blockquote p {
  margin: 0;
  font-size: 14.5px;
  color: #4b5563;
}

/* Tables */
.pp-policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.pp-policy-content thead {
  background-color: var(--orange, #ff5733);
  color: #fff;
}

.pp-policy-content th,
.pp-policy-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-cream, #f0e6d9);
}

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

.pp-policy-content tr:nth-child(even) td {
  background-color: rgba(255, 87, 51, 0.02);
}

/* Strong & emphasis */
.pp-policy-content strong {
  font-weight: 700;
  color: var(--blue, #2c3e50);
}

.pp-policy-content em {
  font-style: italic;
  color: #6b7280;
}

/* Horizontal rules as section breaks */
.pp-policy-content hr {
  border: none;
  border-top: 1.5px solid var(--border-cream, #f0e6d9);
  margin: 2.4em 0;
}

/* ── Back to top ────────────────────────────────────────────────────────── */
.pp-page-content__footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1.5px solid var(--border-cream, #f0e6d9);
}

.pp-page-content__back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey, #6b7280);
  text-decoration: none;
  padding: 8px 18px;
  border: 1.5px solid var(--border-cream, #f0e6d9);
  border-radius: 50px;
  background: var(--white, #fff);
  transition: all 0.2s ease;
  font-family: var(--global-body-font-family, "Inter", sans-serif);
}

.pp-page-content__back-top:hover {
  border-color: var(--orange, #ff5733);
  color: var(--orange, #ff5733);
  background-color: rgba(255, 87, 51, 0.04);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pp-page-content__body-wrap--has-toc {
    flex-direction: column;
    gap: 32px;
  }

  .pp-page-content__toc {
    position: static;
    flex: none;
    width: 100%;
  }

  .pp-page-content__toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .pp-page-content__toc-list a {
    border: 1.5px solid var(--border-cream, #f0e6d9);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 13px;
  }

  .pp-page-content__toc-list a::before {
    display: none;
  }
}

@media (max-width: 767px) {
  .pp-page-content {
    padding: 48px 0 60px;
  }

  .pp-page-content__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .pp-page-content__title {
    font-size: 26px;
  }

  .pp-policy-content h2 {
    font-size: 20px;
  }

  .pp-policy-content h3 {
    font-size: 17px;
  }

  .pp-policy-content {
    font-size: 14.5px;
  }

  .pp-policy-content table {
    font-size: 13px;
  }

  .pp-policy-content th,
  .pp-policy-content td {
    padding: 10px 12px;
  }
}
