/* =========================================================
   PRIVACY POLICY — page-scoped styles (pp- prefix)
   Light theme. Depends on Bootstrap 5, Font Awesome 6, and
   Inter / Space Grotesk already loaded via global_head.php.
   ========================================================= */

.pp-wrap {
  --pp-bg: #FBFAF7;
  --pp-surface: #F1EFEA;
  --pp-surface-solid: #FFFFFF;
  --pp-line: #E4E1D8;
  --pp-text: #20241F;
  --pp-body-text: #3D4136;
  --pp-muted: #6B6F63;
  --pp-accent: #3D5AF1;
  --pp-accent-soft: #3D5AF114;
  --pp-teal: #0E8F72;
  --pp-teal-soft: #0E8F7214;

  background: var(--pp-bg);
  color: var(--pp-text);
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
}

.pp-wrap * {
  box-sizing: border-box;
}

.pp-wrap h1,
.pp-wrap h2,
.pp-wrap .pp-num {
}

.pp-wrap a {
  color: var(--pp-accent);
  text-decoration: none;
}

.pp-wrap a:hover {
  color: var(--pp-teal);
}

/* ---------- Breadcrumb ---------- */
.pp-breadcrumb {
  --bs-breadcrumb-divider: '›';
  font-size: .875rem;
  padding: 1.25rem 0 0;
}

.pp-breadcrumb a {
  color: var(--pp-muted);
}

.pp-breadcrumb a:hover {
  color: var(--pp-teal);
}

.pp-breadcrumb .active {
  color: var(--pp-text);
  font-weight: 500;
}

.pp-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--pp-line);
  font-size: 1rem;
}

/* ---------- Hero ---------- */
.pp-hero {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--pp-line);
}

.pp-hero h1 {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.pp-hero p {
  color: var(--pp-muted);
  max-width: 64ch;
  margin-bottom: 0;
}

.pp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--pp-muted);
}

.pp-meta span i {
  color: var(--pp-teal);
  margin-right: .4rem;
}

/* ---------- Layout ---------- */
.pp-layout {
  padding: 2.5rem 0 4rem;
}

.pp-sidebar {
  position: sticky;
  top: 1.5rem;
  align-self: start;
}

/* Search */
.pp-search {
  position: relative;
  margin-bottom: 1.25rem;
}

.pp-search input {
  background: var(--pp-surface-solid);
  border: 1px solid var(--pp-line);
  color: var(--pp-text);
  border-radius: 8px;
  padding: .55rem .8rem .55rem 2.2rem;
  font-size: .875rem;
  width: 100%;
}

.pp-search input:focus {
  outline: none;
  border-color: var(--pp-accent);
  box-shadow: 0 0 0 3px var(--pp-accent-soft);
}

.pp-search i {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pp-muted);
  font-size: .8rem;
}

/* Table of contents */
.pp-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--pp-line);
}

.pp-toc a {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .5rem .9rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--pp-muted);
  font-size: .875rem;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.pp-toc a:hover {
  color: var(--pp-text);
  background: var(--pp-surface);
}

.pp-toc a.active {
  color: var(--pp-text);
  border-left-color: var(--pp-teal);
  background: var(--pp-teal-soft);
  font-weight: 500;
}

.pp-toc .pp-num {
  color: var(--pp-accent);
  font-size: .75rem;
  min-width: 1.4rem;
}

.pp-toc a.active .pp-num {
  color: var(--pp-teal);
}

.pp-no-results {
  display: none;
  color: var(--pp-muted);
  font-size: .85rem;
  padding: .5rem .9rem;
}

/* Mobile TOC */
.pp-mobile-toc {
  display: none;
}

@media (max-width: 991.98px) {
  .pp-sidebar {
    display: none;
  }

  .pp-mobile-toc {
    display: block;
    margin-bottom: 2rem;
  }

  .pp-mobile-toc select {
    width: 100%;
    background: var(--pp-surface-solid);
    border: 1px solid var(--pp-line);
    color: var(--pp-text);
    border-radius: 8px;
    padding: .6rem .8rem;
    font-size: .9rem;
  }
}

/* ---------- Content sections ---------- */
.pp-section {
  padding-top: 1.5rem;
  margin-top: -1.5rem;
  border-bottom: 1px solid var(--pp-line);
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
}

.pp-section:last-child {
  border-bottom: none;
}

.pp-section-head {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  margin-bottom: .9rem;
}

.pp-section-head .pp-num {
  font-size: 1rem;
  color: var(--pp-teal);
  font-weight: 600;
  flex-shrink: 0;
}

.pp-section-head h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -.01em;
}

.pp-section p,
.pp-section li {
  color: var(--pp-body-text);
}

.pp-section strong {
  color: var(--pp-text);
}

.pp-section ul {
  padding-left: 1.2rem;
  margin-bottom: .75rem;
}

.pp-section li {
  margin-bottom: .4rem;
}

.pp-section li:last-child {
  margin-bottom: 0;
}

.pp-section p:last-child {
  margin-bottom: 0;
}

.pp-section .fa-solid,
.pp-section .fa-regular {
  color: var(--pp-teal);
}

.pp-highlight {
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-left: 3px solid var(--pp-accent);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  font-size: .925rem;
  color: var(--pp-muted);
  margin-top: 1rem;
}

.pp-highlight strong {
  color: var(--pp-text);
}

/* ---------- Back to top ---------- */
#ppTop {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pp-accent);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(61, 90, 241, .3);
  z-index: 50;
  transition: transform .15s ease, background .15s ease;
}

#ppTop:hover {
  transform: translateY(-3px);
  background: var(--pp-teal);
}

@media (prefers-reduced-motion: reduce) {
  .pp-wrap * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}