/* Legal pages (/privacy/, /terms/ and their per-app pages).
   Loaded after styles.css; builds only on the site's existing tokens. */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Directory ---------- */
.pp-hero { position: relative; padding-top: 120px; padding-bottom: 72px; overflow: hidden; }
.pp-lead { margin: 32px 0 0; max-width: 560px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, 0.72); }

.pp-list-wrap { max-width: 880px; padding-bottom: 140px; }
.pp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.pp-app {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 32px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pp-app-name { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.pp-app-desc { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.68); }
.pp-app-meta { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.pp-app-link {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgba(25, 211, 197, 0.45); color: var(--teal);
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pp-app-link:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.pp-empty, .pp-contact { margin: 40px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.6); text-align: center; }

/* ---------- Single policy ---------- */
.pp-doc { padding-top: 56px; padding-bottom: 120px; }
.pp-crumbs a, .pp-back a { font-size: 14px; font-weight: 600; text-decoration: none; }
.pp-doc-head { margin-top: 48px; }
.pp-doc-head .eyebrow { margin: 0 0 16px; }
.pp-meta { margin: 20px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.55); }

.pp-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; margin-top: 56px; align-items: start; }

.pp-toc { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; }
.pp-toc-title { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.pp-toc ol { list-style: none; margin: 0; padding: 0; }
.pp-toc a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.pp-toc a:hover { color: var(--teal); }

.pp-body { max-width: 760px; font-size: 17px; line-height: 1.75; color: rgba(255, 255, 255, 0.74); }
.pp-body > :first-child { margin-top: 0; }
.pp-body h2 {
  margin: 64px 0 0; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; color: var(--white);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.pp-body h3 { margin: 40px 0 0; font-size: 19px; line-height: 1.35; color: var(--white); scroll-margin-top: calc(var(--header-h) + 16px); }
.pp-body p { margin: 16px 0 0; }
.pp-body ul, .pp-body ol { margin: 16px 0 0; padding-left: 22px; }
.pp-body li { margin-top: 10px; padding-left: 4px; }
.pp-body li::marker { color: var(--teal); }
.pp-body strong { color: var(--white); font-weight: 600; }
.pp-body a { overflow-wrap: anywhere; }
.pp-body blockquote { margin: 24px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal); }
.pp-body blockquote p { margin: 0; color: var(--white); }

.pp-table { margin-top: 24px; overflow-x: auto; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; }
.pp-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.pp-table th, .pp-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.pp-table tbody tr:last-child > * { border-bottom: 0; }
.pp-table thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.025); }
.pp-table tbody th { color: var(--white); font-weight: 600; }

.pp-back { margin: 80px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pp-layout { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 40px; }
  .pp-toc {
    position: static; max-height: none; overflow: visible;
    padding: 20px 24px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; margin-bottom: 8px;
  }
}
@media (max-width: 900px) {
  .pp-hero { padding-top: 80px; padding-bottom: 48px; }
  .pp-list-wrap { padding-bottom: 96px; }
  .pp-doc { padding-top: 32px; padding-bottom: 96px; }
  .pp-doc-head { margin-top: 32px; }
}
@media (max-width: 600px) {
  .pp-app { flex-direction: column; align-items: flex-start; gap: 20px; }
  .pp-body { font-size: 16px; }
  .pp-body h2 { font-size: 22px; margin-top: 48px; }

  /* Tables become stacked, labelled cards */
  .pp-table { overflow: visible; }
  .pp-table table { min-width: 0; }
  .pp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pp-table tbody tr { display: block; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .pp-table tbody tr:last-child { border-bottom: 0; }
  .pp-table tbody th, .pp-table td { display: block; padding: 0; border: 0; }
  .pp-table td { margin-top: 8px; }
  .pp-table td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45);
  }
}

/* Contact note at the end of each legal document */
.pp-contact-box { margin-top: 64px; padding: 20px 24px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; background: rgba(255, 255, 255, 0.025); }
.pp-contact-box p { margin: 0; font-size: 15px; }
