/* ==========================================================================
   Legal pages — privacy, terms, cookies
   ========================================================================== */

.pc-legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }

/* ---------- Contents ---------- */
/* Sticky lives on the grid item, not the box inside it. With
   align-items:start the column is only as tall as its content, so a sticky
   child would have no range to travel. */
.pc-legal-toc { position: sticky; top: 96px; align-self: start; }
.pc-legal-toc-inner {
  border: 1px solid var(--pc-border); border-radius: var(--pc-radius);
  background: var(--pc-surface); padding: 20px;
  max-height: calc(100vh - 130px); overflow-y: auto;
}
.pc-legal-toc-title {
  font-weight: 800; font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--pc-muted2); margin-bottom: 12px;
}
.pc-legal-toc nav { display: flex; flex-direction: column; gap: 2px; }
.pc-legal-toc a {
  font-size: 13.5px; line-height: 1.4; color: var(--pc-muted);
  padding: 7px 10px; border-radius: 9px; border-left: 2px solid transparent;
}
.pc-legal-toc a:hover { background: var(--pc-surface2); color: var(--pc-ink); }
.pc-legal-toc a.is-active {
  background: var(--pc-yellow-soft); color: var(--pc-ink);
  font-weight: 800; border-left-color: var(--pc-yellow);
}

/* ---------- Body ---------- */
.pc-legal-body { font-size: 16px; }
.pc-legal-body > *:first-child { margin-top: 0; }
.pc-legal-body h2 {
  font-size: 26px; margin: 42px 0 12px; padding-top: 8px;
  scroll-margin-top: 100px;
}
.pc-legal-body h2:first-of-type { margin-top: 0; }
.pc-legal-body h3 { font-size: 19px; margin: 26px 0 8px; }
.pc-legal-body p { line-height: 1.75; color: var(--pc-ink-soft); margin: 0 0 14px; }
.pc-legal-body ul, .pc-legal-body ol { line-height: 1.8; color: var(--pc-ink-soft); padding-left: 20px; margin: 0 0 16px; }
.pc-legal-body li { margin-bottom: 6px; }
.pc-legal-body a { text-decoration: underline; text-underline-offset: 2px; }

.pc-legal-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.pc-legal-body th, .pc-legal-body td { border: 1px solid var(--pc-border); padding: 11px 13px; text-align: left; }
.pc-legal-body th { background: var(--pc-surface2); font-weight: 800; }

/* Blockquote used for the "important" callouts in the copy. */
.pc-legal-body blockquote {
  margin: 22px 0; padding: 16px 20px; border-radius: 14px;
  background: var(--pc-yellow-soft); border-left: 4px solid var(--pc-yellow);
  font-style: normal;
}
.pc-legal-body blockquote p:last-child { margin-bottom: 0; }

/* Closing call to action, written into the page content. */
.pc-legal-cta {
  margin-top: 44px; padding: 30px 32px; border-radius: var(--pc-radius-lg);
  background: var(--pc-teal); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.pc-legal-cta .pc-kicker { color: var(--pc-teal-soft); margin-bottom: 6px; display: block; }
.pc-legal-cta h3 { color: #fff; font-size: 26px; margin: 0 0 6px; }
.pc-legal-cta p { color: #D8E8EB; margin: 0; }
.pc-legal-cta .pc-btn { flex: none; }

.pc-legal-body .pc-btn { text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pc-legal-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 900px) {
  .pc-legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .pc-legal-toc { position: static; }
  .pc-legal-toc-inner { max-height: none; }
  .pc-legal-toc nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
}
@media (max-width: 620px) {
  .pc-legal-toc nav { grid-template-columns: 1fr; }
  .pc-legal-body { font-size: 15px; }
  .pc-legal-body h2 { font-size: 22px; margin-top: 34px; }
}
