/* ============================================================
   Legal pages — privacy-policy/ and terms/ (the pp-* classes)
   Sits on top of style.css. Reuses the home page's tokens, the
   hero backdrop (.hero-bg) and the yellow rules; nothing here
   needs a script.
   ============================================================ */

/* ---------- page head: the home hero, cut down to a band ---------- */
.pp-hero{
  position:relative; isolation:isolate; overflow:hidden;
  background:var(--dark); color:var(--white);
  padding-block:clamp(56px,8vw,104px) clamp(48px,6vw,80px);
}
.pp-hero-inner{position:relative; z-index:2}
.pp-hero h1{font-size:clamp(2.3rem,5.4vw,4.1rem)}
.pp-hero h1::after{
  content:""; display:block; width:96px; height:8px;
  background:var(--brand); margin-top:24px;
}

/* ---------- layout: contents on the left, text on the right ---------- */
.pp-body{padding-block:clamp(48px,7vw,96px)}
.pp-grid{
  display:grid; grid-template-columns:minmax(0,260px) minmax(0,1fr);
  gap:clamp(32px,6vw,96px); align-items:start;
}

.pp-toc{position:sticky; top:calc(var(--hdr-h) + 28px)}
.pp-toc-title{
  margin:0 0 14px; font-size:12px; font-weight:700;
  letter-spacing:.18em; text-transform:uppercase; color:var(--ink-mute);
}
.pp-toc ol{counter-reset:toc; border-left:2px solid var(--grey-line)}
.pp-toc li{counter-increment:toc}
.pp-toc a{
  display:flex; gap:10px; margin-left:-2px;
  padding:7px 0 7px 16px; border-left:2px solid transparent;
  font-size:.9rem; font-weight:500; line-height:1.4; color:var(--ink-soft);
  transition:color .18s var(--ease), border-color .18s var(--ease);
}
.pp-toc a::before{
  content:counter(toc, decimal-leading-zero);
  font-size:.78rem; font-weight:800; color:var(--ink-mute); padding-top:1px;
}
.pp-toc a:hover{color:var(--ink); border-left-color:var(--brand)}

/* ---------- the policy text ---------- */
.pp-doc{max-width:76ch; color:var(--ink-soft)}
/* the document's own title, so the text reads as a whole when printed or scrolled to */
.pp-title{font-size:clamp(1.7rem,3.2vw,2.3rem); color:var(--ink); margin:0 0 22px}
.pp-title::after{
  content:""; display:block; width:64px; height:6px;
  background:var(--brand); margin-top:16px;
}
/* terms/: the document's date above it, and its second title ("Terms of Use") after the introduction */
.pp-updated{margin:0 0 14px; font-size:.86rem; font-weight:600; color:var(--ink-mute)}
.pp-title-next{margin-top:clamp(32px,4.5vw,48px)}
.pp-items dd strong{color:var(--ink)}
.pp-intro{
  font-size:clamp(1.05rem,1.6vw,1.2rem); line-height:1.7; color:var(--ink);
  padding-bottom:clamp(28px,4vw,40px); margin-bottom:0;
  border-bottom:1px solid var(--grey-line);
}

/* terms/ has a three-paragraph intro, so it is a div of <p>s */
.pp-intro p:last-child{margin-bottom:0}

.pp-sec{padding-block:clamp(28px,4vw,40px); border-bottom:1px solid var(--grey-line)}
.pp-sec h2{
  display:flex; align-items:baseline; gap:14px;
  font-size:clamp(1.35rem,2.4vw,1.75rem); color:var(--ink); margin-bottom:20px;
}
.pp-num{
  flex:none; font-size:.8rem; font-weight:800; letter-spacing:.04em;
  color:var(--ink); background:var(--brand); border-radius:var(--r);
  padding:3px 8px; transform:translateY(-3px);
}
.pp-doc a{color:var(--blue); font-weight:600; text-decoration:underline; text-underline-offset:3px}
.pp-doc a:hover{color:var(--blue-dark)}

/* the three kinds of information, as labelled rows */
.pp-items{margin:0; display:grid; gap:2px; background:var(--grey-line); border-radius:var(--r-lg); overflow:hidden}
.pp-items > div{background:var(--white); padding:20px 24px; border-left:4px solid var(--brand)}
.pp-items dt{font-weight:700; color:var(--ink); margin-bottom:4px}
.pp-items dd{margin:0; font-size:.96rem; line-height:1.66}

/* same yellow tick marks as the home page's decide-list */
.pp-list{display:grid; gap:10px; margin:0 0 1.3em}
.pp-list li{position:relative; padding-left:30px; line-height:1.6}
.pp-list li::before{
  content:""; position:absolute; left:2px; top:.5em;
  width:12px; height:7px; border:solid var(--brand); border-width:0 0 3px 3px;
  transform:rotate(-45deg);
}

.pp-note{
  padding:18px 22px; background:var(--grey); border-radius:var(--r-lg);
  border-left:4px solid var(--brand);
}

.pp-contact{
  margin-top:6px; padding:clamp(22px,3vw,30px);
  background:var(--grey); border-radius:var(--r-lg); border-top:6px solid var(--brand);
}
.pp-contact p{margin:0}
.pp-contact-org{font-weight:800; color:var(--ink); margin-bottom:6px !important}

.pp-back{margin:28px 0 0; font-size:.9rem}
.pp-back a{text-decoration:none}
.pp-back a::before{content:"\2191\00a0"}

/* ---------- small screens: contents above the text ---------- */
@media (max-width:900px){
  .pp-grid{grid-template-columns:1fr}
  .pp-toc{position:static; padding:20px 22px; background:var(--grey); border-radius:var(--r-lg)}
  .pp-toc ol{columns:2; column-gap:24px; border-left:none}
  .pp-toc a{padding-left:0; margin-left:0; border-left:none; break-inside:avoid}
}
@media (max-width:560px){
  .pp-toc ol{columns:1}
  .pp-items > div{padding:16px 18px}
}

@media print{
  .pp-hero{padding-block:24px}
  .pp-toc,.pp-back{display:none}
  .pp-grid{grid-template-columns:1fr}
}
