/* privacy.html: opens like the C64 front door (home.html colours), then a quiet readable page */
:root {
  --c64-border: #6f5ec9;
  --c64-screen: #4032a6;
  --c64-text: #b9b0f2;
  --ink: #1d1747;
  --ink-2: #251e5a;
  --text: #e6e3ff;
  --muted: #b3acdf;
  --rule: rgba(185, 176, 242, .22);
  --link: #c9c0ff;
  --yellow: #eeee77;
  --body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Press Start 2P", "Courier New", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.65 var(--body); }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }

/* ---------- the C64 screen ---------- */
.pv-screen { background: var(--c64-border); padding: clamp(12px, 2.6vw, 34px); }
.pv-in {
  position: relative; overflow: hidden;
  background: var(--c64-screen); color: var(--c64-text);
  padding: clamp(22px, 4.5vw, 56px) clamp(18px, 5vw, 64px) clamp(26px, 5vw, 60px);
}
.pv-in::after {           /* faint scanlines, same as the front door */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .10) 2px 3px);
}
.pv-load, .pv-ready { margin: 0; font: 400 clamp(10px, 1.6vw, 14px)/1.9 var(--pixel); letter-spacing: .5px; }
.pv-ready { margin-bottom: clamp(18px, 3.5vw, 34px); }
.pv-cur { display: inline-block; width: .9em; height: 1em; margin-left: .35em; vertical-align: -.12em; background: var(--c64-text); animation: pv-blink 1.05s steps(1) infinite; }
@keyframes pv-blink { 50% { opacity: 0; } }
.pv-typing .pv-ready, .pv-typing .pv-in h1, .pv-typing .pv-lede, .pv-typing .pv-meta { opacity: 0; }
.pv-ready, .pv-in h1, .pv-lede, .pv-meta { transition: opacity .35s ease; }
@media (prefers-reduced-motion: reduce) { .pv-cur { animation: none; } }

.pv-in h1 {
  margin: 0 0 .35em; color: #fff;
  font: 800 clamp(40px, 8vw, 92px)/.95 var(--body); letter-spacing: -.035em;
  text-shadow: .045em .045em 0 rgba(17, 10, 70, .55);
}
.pv-lede { max-width: 34em; margin: 0 0 1.1em; font-size: clamp(17px, 2.1vw, 21px); line-height: 1.5; color: #ece9ff; }
.pv-meta { margin: 0; font-size: 14px; color: var(--c64-text); }

/* ---------- body ---------- */
.pv-body { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 20px 24px; }
.pv-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.pv-toc a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.pv-toc a:hover { color: #fff; text-decoration: underline; }

section { padding: 30px 0 6px; scroll-margin-top: 16px; }
h2 { margin: 0 0 .55em; color: #fff; font: 700 clamp(24px, 3.4vw, 30px)/1.15 var(--body); letter-spacing: -.015em; }
p, ul { margin: 0 0 1em; max-width: 68ch; }
ul { padding-left: 1.2em; }
li { margin: .3em 0; }
li::marker { color: var(--c64-border); }
b { color: #fff; font-weight: 700; }

.pv-short { list-style: none; padding: 0; }
.pv-short li { position: relative; padding-left: 1.6em; margin: .55em 0; font-size: 18px; }
.pv-short li::before { content: ""; position: absolute; left: 0; top: .5em; width: .62em; height: .62em; background: var(--c64-border); box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }

/* what-I-keep ledger */
.pv-table { margin: 6px 0 20px; overflow-x: auto; border-top: 2px solid var(--c64-border); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
thead th { text-align: left; font-weight: 600; font-size: 13.5px; color: var(--muted); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); }
tbody th, tbody td { text-align: left; vertical-align: top; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--rule); }
tbody th { width: 30%; color: #fff; font-weight: 700; }
tbody th span { display: block; margin-top: 3px; color: var(--muted); font-weight: 400; font-size: 14px; }
tbody td:last-child { width: 28%; color: var(--muted); padding-right: 0; }
@media (max-width: 640px) {
  .pv-table { overflow: visible; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  tbody th, tbody td { display: block; width: auto !important; padding: 0; border: 0; }
  tbody td { margin-top: 6px; }
  tbody td:last-child::before { content: "Kept: "; color: var(--text); font-weight: 600; }
}

/* player choices */
.pv-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 6px 0 14px; padding: 16px 18px; background: var(--ink-2); border-left: 4px solid var(--yellow); }
.pv-choices p { margin: 0; flex: 1 1 260px; }
.pv-choices button {
  min-height: 44px; padding: 0 18px; cursor: pointer;
  font: 600 15px/1 var(--body); color: var(--ink); background: var(--yellow);
  border: 0; box-shadow: 3px 3px 0 rgba(0, 0, 0, .4);
}
.pv-choices button:hover { background: #fff; }
.pv-choices button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .4); }

.legal-foot { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--rule); color: var(--muted); }
