/* === privacy.css === */

/* ══════════════════════════════════════
   PRIVACY POLICY PAGE
══════════════════════════════════════ */

html { scroll-behavior: smooth; }

/* Override overflow-x:hidden on body so position:sticky works */
body.pp-body { overflow-x: clip; }

.pp-page {
  background: var(--black);
  padding-top: 80px;
  min-height: 100vh;
}

/*
  2-column layout:
    col 1 (left)  = article.pp-content  — policy text
    col 2 (right) = aside.pp-sidebar    — sticky TOC
  DOM order matches visual order, so no explicit grid-column needed.
*/
.pp-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 48px 120px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: start;
}

/* ══════════════════════════════════════
   SIDEBAR / TABLE OF CONTENTS
══════════════════════════════════════ */
.pp-sidebar {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  scrollbar-width: none;
}
.pp-sidebar::-webkit-scrollbar { display: none; }

.pp-toc {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: 16px;
  padding: 22px 18px;
}

.pp-toc__heading {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--g);
  display: block;
  margin-bottom: 14px;
}

/* Mobile toggle — hidden on desktop */
.pp-toc__toggle { display: none; }

.pp-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pp-toc__link {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  line-height: 1.45;
  transition: color .18s, background .18s;
}
.pp-toc__link:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}
.pp-toc__link.active {
  color: var(--g);
  background: rgba(153,202,60,.09);
  font-weight: 600;
}

/* ══════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════ */
.pp-content {
  min-width: 0;
}

/* ── Page header ── */
.pp-header {
  padding-bottom: 44px;
  border-bottom: 1px solid var(--bdr);
}

.pp-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--g);
  opacity: .75;
  margin-bottom: 14px;
}

.pp-title {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.pp-date {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 24px;
}
.pp-date strong { color: var(--muted); font-weight: 600; }

.pp-intro p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 14px;
}
.pp-intro p:last-child { margin-bottom: 0; }

/* ── Sections ── */
.pp-section[id] {
  scroll-margin-top: 108px;
}

.pp-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--bdr);
}
.pp-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pp-section h2 {
  font-family: 'Satoshi', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 18px;
}

.pp-section h3 {
  font-family: 'Satoshi', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.3;
  margin: 32px 0 10px;
  opacity: .9;
}
.pp-section h3:first-of-type { margin-top: 10px; }

.pp-section p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 12px;
}
.pp-section p:last-child { margin-bottom: 0; }

.pp-section ul {
  margin: 10px 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pp-section ul:last-child { margin-bottom: 0; }

.pp-section li {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.pp-section li::before {
  content: '–';
  position: absolute;
  left: 2px;
  color: var(--g);
  opacity: 0.55;
  font-weight: 700;
}

.pp-section strong {
  color: var(--text);
  font-weight: 700;
}

.pp-section a {
  color: var(--g);
  text-decoration: none;
  transition: opacity .2s;
}
.pp-section a:hover { opacity: .75; }

/* Legal basis pill */
.pp-basis {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--bdr);
  border-radius: 100px;
  padding: 4px 12px;
  margin-top: 12px;
}
.pp-basis strong { color: var(--g); font-weight: 600; font-size: 11px; letter-spacing: 0.5px; }

/* Contact block at bottom */
.pp-contact-block {
  margin-top: 20px;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: 16px;
}
.pp-contact-block p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.pp-contact-block strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.pp-contact-block a {
  color: var(--g);
  font-weight: 600;
  text-decoration: none;
}
.pp-contact-block .pp-thanks {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--bdr);
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 0;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 940px) {
  .pp-inner {
    grid-template-columns: 1fr;
    padding: 48px 32px 80px;
    gap: 0;
  }
  .pp-content {
    order: 2;
  }
  .pp-sidebar {
    order: 1;
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: 48px;
  }
  .pp-toc { padding: 18px 16px; }

  /* Show toggle, hide static heading on mobile */
  .pp-toc__heading { display: none; }
  .pp-toc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text);
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-weight: 700;
  }
  .pp-toc__toggle-chevron {
    color: var(--muted);
    transition: transform .25s ease;
    flex-shrink: 0;
  }
  .pp-toc__toggle[aria-expanded="true"] .pp-toc__toggle-chevron {
    transform: rotate(180deg);
  }
  .pp-toc__nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    margin-top: 0;
  }
  .pp-toc__nav.is-open {
    max-height: 2000px;
    margin-top: 14px;
  }
}

@media (max-width: 580px) {
  .pp-inner { padding: 36px 20px 64px; }
  .pp-section h2 { font-size: 18px; }
  .pp-title { letter-spacing: -0.8px; }
}
