/* =========================================================
   Privacy Policy page — uses the site theme tokens from style.css
   (--mainColor, --secondaryColor, --mainGradient, fonts)
   ========================================================= */

html { scroll-behavior: smooth; }

/* style.css sets overflow-x:hidden on html/body, which turns body into a
   scroll container and breaks position:sticky. "clip" hides overflow the
   same way without that side effect (older browsers keep "hidden"). */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

.pp-page {
  --pp-ink: #031521;
  --pp-text: #4a4a5e;
  --pp-muted: #6b6b84;
  --pp-line: #ececf3;
  --pp-soft: #f7f7fb;
  --pp-radius: clamp(12px, 1.4vw, 18px);
  --pp-gap: clamp(16px, 2.5vw, 32px);
  --pp-nav-offset: 140px; /* sticky navbar is ~123px tall */
  background: var(--pageBackground);
}

/* ---------- Hero ---------- */
.pp-hero {
  padding-top: clamp(130px, 16vw, 190px);
  padding-bottom: clamp(90px, 11vw, 140px);
  text-align: center;
  overflow: hidden;
}
.pp-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--mainGradient);
}
.pp-crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.pp-crumb a { color: #fff; }
.pp-crumb a:hover { color: var(--mainColor); }
.pp-crumb i { font-size: 10px; opacity: 0.6; }

.pp-hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.1;
  margin: 0 0 18px;
  color: #fff;
}
.pp-hero h1 span {
  background: var(--mainGradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pp-hero p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(15px, 1.4vw, 18px);
}
.pp-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

/* ---------- Highlight cards (overlap the hero) ---------- */
.pp-highlights {
  position: relative;
  z-index: 2;
  margin-top: clamp(-70px, -6vw, -40px);
}
.pp-highlights .row { --bs-gutter-y: var(--pp-gap); }
.pp-hl {
  height: 100%;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: clamp(18px, 2vw, 26px);
  background: #fff;
  border-radius: var(--pp-radius);
  box-shadow: 0 12px 40px rgba(3, 21, 33, 0.08);
  position: relative;
  overflow: hidden;
}
.pp-hl::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--mainGradient);
}
.pp-hl-icon {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 20px;
  background: var(--mainGradient);
}
.pp-hl h3 {
  font-size: 17px;
  margin: 2px 0 6px;
  color: var(--pp-ink);
  text-transform: none;
}
.pp-hl p { font-size: 14.5px; margin: 0; color: var(--pp-muted); }

/* ---------- Body layout ---------- */
.pp-body { padding: clamp(50px, 7vw, 90px) 0 clamp(60px, 8vw, 100px); }

.pp-toc {
  position: sticky;
  top: var(--pp-nav-offset);
  padding: 22px;
  background: var(--pp-soft);
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
}
.pp-toc strong {
  display: block;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pp-ink);
  margin-bottom: 12px;
}
.pp-toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
}
.pp-toc li { counter-increment: toc; }
.pp-toc a {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--pp-text);
  border-left: 3px solid transparent;
}
.pp-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-weight: 700;
  color: var(--pp-muted);
  min-width: 20px;
}
.pp-toc a:hover,
.pp-toc a.is-active {
  background: #fff;
  color: var(--mainColor);
  border-left-color: var(--mainColor);
}
.pp-toc a.is-active::before { color: var(--mainColor); }

/* Sections */
.pp-intro {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--pp-text);
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--pp-line);
}
.pp-section {
  scroll-margin-top: var(--pp-nav-offset);
  padding: clamp(22px, 3vw, 34px);
  margin-bottom: var(--pp-gap);
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.pp-section:hover {
  border-color: rgba(255, 0, 110, 0.25);
  box-shadow: 0 10px 30px rgba(3, 21, 33, 0.05);
}
.pp-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--pp-ink);
  margin: 0 0 16px;
  text-transform: none;
}
.pp-num {
  flex: 0 0 auto;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 15px;
  color: #fff;
  background: var(--mainGradient);
}
.pp-section h3 {
  font-size: 17px;
  color: var(--pp-ink);
  margin: 20px 0 8px;
  text-transform: none;
}
.pp-section p,
.pp-section li { color: var(--pp-text); font-size: 15.5px; line-height: 1.75; }
.pp-section a { color: var(--mainColor); font-weight: 600; }
.pp-section a:hover { text-decoration: underline; }
.pp-section a[href^="tel:"] { white-space: nowrap; }

.pp-list { list-style: none; padding: 0; margin: 0 0 12px; }
.pp-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}
.pp-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 13px;
  color: var(--mainColor);
}

.pp-note {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  margin: 16px 0 0;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 0, 110, 0.07), rgba(47, 128, 255, 0.07));
  border-left: 4px solid var(--mainColor);
}
.pp-note i { color: var(--mainColor); font-size: 18px; margin-top: 4px; }
.pp-note p { margin: 0; color: var(--pp-ink); font-weight: 500; }

/* SMS keyword chips */
.pp-keys {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.pp-key {
  padding: 16px;
  border-radius: 12px;
  background: var(--pp-soft);
  border: 1px solid var(--pp-line);
}
.pp-key b {
  display: inline-block;
  padding: 3px 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 1px;
  color: #fff;
  background: var(--mainGradient);
}
.pp-key p { margin: 0; font-size: 14.5px; }

/* Contact card */
.pp-contact {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--pp-radius);
  color: #fff;
  background: #1a191d;
  scroll-margin-top: var(--pp-nav-offset);
}
.pp-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mainGradient);
  opacity: 0.18;
}
.pp-contact > * { position: relative; }
.pp-contact h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 10px;
  text-transform: none;
}
.pp-contact > p { color: rgba(255, 255, 255, 0.8); margin-bottom: 24px; }
.pp-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.pp-contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  min-width: 0;
}
a.pp-contact-item:hover {
  color: #fff;
  border-color: var(--mainColor);
  background: rgba(255, 0, 110, 0.12);
}
.pp-contact-item i {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mainGradient);
  font-size: 16px;
}
.pp-contact-item small {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.pp-contact-item span {
  display: block;
  font-weight: 600;
  font-size: clamp(13px, 3.4vw, 15px);
  overflow-wrap: anywhere; /* last resort on very narrow phones */
}

.pp-disclaimer {
  margin-top: 22px;
  font-size: 13px;
  color: var(--pp-muted);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .pp-toc {
    position: static;
    margin-bottom: 28px;
  }
  .pp-toc ol {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .pp-toc a {
    margin: 0;
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--pp-line);
    border-radius: 30px;
    padding: 7px 14px;
  }
  .pp-toc a.is-active { border-color: var(--mainColor); }
}
@media (max-width: 575.98px) {
  .pp-section h2 { align-items: flex-start; }
  .pp-num { min-width: 36px; height: 36px; font-size: 13px; border-radius: 10px; }
  .pp-contact-item { padding: 14px 12px; gap: 12px; }
  .pp-contact-item i { flex-basis: 38px; height: 38px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .pp-section { transition: none; }
}
