/* ═══════════════════════════════════════════════════════════════
   PRIVACY POLICY PAGE — Scoped Styles
   All selectors prefixed with .pp-* to avoid global collisions.
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES ────────────────────────────────────── */
.pp-page {
  --pp-blue:      #2F80ED;
  --pp-blue-lt:   #EAF2FF;
  --pp-blue-dk:   #1a6bd4;
  --pp-text:      #1A202C;
  --pp-muted:     #4A5568;
  --pp-light:     #6B7280;
  --pp-border:    #E2E8F0;
  --pp-bg:        #F8FAFC;
  --pp-white:     #ffffff;
  --pp-warn:      #FFFBEB;
  --pp-warn-bd:   #F59E0B;
  --pp-warn-txt:  #92400E;
  --pp-green:     #F0FDF4;
  --pp-green-bd:  #22C55E;
  --pp-green-txt: #14532D;
  --pp-red:       #FEF2F2;
  --pp-red-bd:    #EF4444;
  --pp-red-txt:   #991B1B;
}

/* ─── HERO ────────────────────────────────────────────────────── */
.pp-hero {
  background: #FAFBFC;
  border-bottom: 1px solid var(--pp-border);
  padding: 150px 24px 60px;
  text-align: center;
}

.pp-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.pp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--pp-blue-lt);
  color: var(--pp-blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47,128,237,.18);
  margin-bottom: 20px;
}

.pp-hero__badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.pp-hero__title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  color: var(--pp-text);
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 0 0 16px;
}

.pp-hero__sub {
  font-size: 1.05rem;
  color: var(--pp-muted);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pp-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: .82rem;
  color: var(--pp-light);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pp-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pp-hero__meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--pp-blue);
  flex-shrink: 0;
}

.pp-hero__anchors {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pp-hero__anchor {
  display: inline-block;
  padding: 7px 16px;
  background: var(--pp-white);
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--pp-muted);
  text-decoration: none;
  transition: border-color .18s, color .18s, background .18s;
}

.pp-hero__anchor:hover {
  border-color: var(--pp-blue);
  color: var(--pp-blue);
  background: var(--pp-blue-lt);
}

/* ─── MOBILE JUMP DROPDOWN ────────────────────────────────────── */
.pp-mobile-nav {
  display: none;
  padding: 0 20px;
  background: var(--pp-white);
  border-bottom: 1px solid var(--pp-border);
}

.pp-mobile-nav select {
  width: 100%;
  padding: 13px 16px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--pp-text);
  background: var(--pp-white);
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  margin: 14px 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.pp-mobile-nav select:focus {
  outline: none;
  border-color: var(--pp-blue);
  box-shadow: 0 0 0 3px rgba(47,128,237,.12);
}

/* ─── LAYOUT GRID ─────────────────────────────────────────────── */
.pp-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────── */
.pp-sidebar {
  position: sticky;
  top: 80px;
  padding: 36px 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}

.pp-sidebar::-webkit-scrollbar { display: none; }

.pp-sidebar__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pp-light);
  margin: 0 0 12px;
  padding: 0 4px;
}

.pp-sidebar__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pp-sidebar__nav li { margin: 0; }

.pp-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--pp-light);
  text-decoration: none;
  border-radius: 7px;
  transition: background .15s, color .15s;
  line-height: 1.3;
}

.pp-sidebar__nav a:hover {
  background: var(--pp-blue-lt);
  color: var(--pp-blue);
}

.pp-sidebar__nav a.active {
  background: var(--pp-blue-lt);
  color: var(--pp-blue);
  font-weight: 600;
}

.pp-nav-num {
  font-size: .7rem;
  font-weight: 700;
  color: var(--pp-blue);
  opacity: .65;
  min-width: 22px;
  flex-shrink: 0;
}

.pp-sidebar__nav a.active .pp-nav-num { opacity: 1; }

/* ─── DOCUMENT BODY ───────────────────────────────────────────── */
.pp-doc {
  padding: 36px 0 36px 44px;
  border-left: 1px solid var(--pp-border);
  min-width: 0;
}

/* ─── SECTION ─────────────────────────────────────────────────── */
.pp-section {
  padding: 0 0 48px;
  border-bottom: 1px solid var(--pp-border);
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.pp-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.pp-section__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.pp-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--pp-blue-lt);
  color: var(--pp-blue);
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(47,128,237,.15);
}

.pp-section__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pp-text);
  margin: 0;
  letter-spacing: -.015em;
  line-height: 1.2;
}

/* ─── SUBCLAUSES ──────────────────────────────────────────────── */
.pp-clauses {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pp-clauses li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  font-size: .93rem;
  line-height: 1.75;
  color: var(--pp-muted);
  border-bottom: 1px solid rgba(226,232,240,.5);
}

.pp-clauses li:last-child { border-bottom: none; }

.pp-clause-num {
  font-size: .78rem;
  font-weight: 700;
  color: var(--pp-blue);
  min-width: 36px;
  padding-top: 3px;
  flex-shrink: 0;
}

.pp-clause-text { min-width: 0; }
.pp-clause-text strong { color: var(--pp-text); }

.pp-clause-text a {
  color: var(--pp-blue);
  text-decoration: none;
  font-weight: 600;
}
.pp-clause-text a:hover { text-decoration: underline; }

/* ─── BULLETS ─────────────────────────────────────────────────── */
.pp-bullets {
  list-style: none;
  margin: 10px 0 14px 50px;
  padding: 0;
}

.pp-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .9rem;
  color: var(--pp-muted);
  line-height: 1.7;
  padding: 5px 0;
}

.pp-bullets li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pp-blue);
  margin-top: 9px;
  flex-shrink: 0;
}

.pp-bullets li strong { color: var(--pp-text); }

/* ─── DEFINITION LIST ─────────────────────────────────────────── */
.pp-definitions {
  margin: 4px 0 0;
  padding: 0;
}

.pp-definitions dt {
  font-size: .88rem;
  font-weight: 700;
  color: var(--pp-text);
  margin: 14px 0 2px;
}

.pp-definitions dd {
  font-size: .9rem;
  color: var(--pp-muted);
  line-height: 1.7;
  margin: 0 0 0 16px;
}

/* ─── SUBSECTION TITLE ────────────────────────────────────────── */
.pp-subsection-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--pp-text);
  margin: 24px 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--pp-blue);
  line-height: 1.3;
}

/* ─── HIGHLIGHT BOXES ─────────────────────────────────────────── */
.pp-highlight {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 20px 0;
  font-size: .88rem;
  line-height: 1.65;
}

.pp-highlight__icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.pp-highlight__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pp-highlight__text { margin: 0; font-weight: 500; }

.pp-highlight--warn {
  background: var(--pp-warn);
  border: 1px solid rgba(245,158,11,.25);
  color: var(--pp-warn-txt);
}
.pp-highlight--warn .pp-highlight__label { color: var(--pp-warn-bd); }

.pp-highlight--critical {
  background: var(--pp-red);
  border: 1px solid rgba(239,68,68,.2);
  color: var(--pp-red-txt);
}
.pp-highlight--critical .pp-highlight__label { color: var(--pp-red-bd); }

.pp-highlight--info {
  background: var(--pp-blue-lt);
  border: 1px solid rgba(47,128,237,.2);
  color: #1e4e8c;
}
.pp-highlight--info .pp-highlight__label { color: var(--pp-blue); }

.pp-highlight--success {
  background: var(--pp-green);
  border: 1px solid rgba(34,197,94,.2);
  color: var(--pp-green-txt);
}
.pp-highlight--success .pp-highlight__label { color: var(--pp-green-bd); }

/* ─── PRE-FOOTER GRADIENT ─────────────────────────────────────── */
.pp-prefooter {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pp-prefooter__bg-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(80px, 18vw, 160px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: rgba(255,255,255,.032);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.pp-prefooter__inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}

.pp-prefooter__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.7);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.pp-prefooter__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}

.pp-prefooter__sub {
  font-size: .97rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin: 0 0 32px;
}

.pp-prefooter__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pp-prefooter__link {
  display: inline-block;
  padding: 10px 22px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  color: rgba(255,255,255,.82);
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}

.pp-prefooter__link:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

.pp-prefooter__link--primary {
  background: var(--pp-blue);
  border-color: var(--pp-blue);
  color: #fff;
}

.pp-prefooter__link--primary:hover {
  background: var(--pp-blue-dk);
  border-color: var(--pp-blue-dk);
}

/* ─── RESPONSIVE: TABLET ──────────────────────────────────────── */
@media (max-width: 960px) {
  .pp-layout {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .pp-sidebar { display: none; }
  .pp-mobile-nav { display: block; }
  .pp-doc {
    padding: 28px 0;
    border-left: none;
  }
}

/* ─── RESPONSIVE: MOBILE ──────────────────────────────────────── */
@media (max-width: 600px) {
  .pp-hero { padding: 130px 20px 48px; }
  .pp-hero__title { font-size: 1.75rem; }
  .pp-hero__meta { flex-direction: column; gap: 8px; }
  .pp-hero__anchors { gap: 6px; }
  .pp-hero__anchor { font-size: .75rem; padding: 6px 12px; }
  .pp-section { padding-bottom: 36px; margin-bottom: 36px; scroll-margin-top: 80px; }
  .pp-section__title { font-size: 1.1rem; }
  .pp-clauses li { flex-direction: column; gap: 4px; }
  .pp-clause-num { min-width: unset; }
  .pp-bullets { margin-left: 0; }
  .pp-subsection-title { margin-top: 18px; }
  .pp-prefooter { padding: 60px 20px; }
}
