/* Pushreel legal pages (imprint, privacy, terms) and 404. Loaded after landing.css, which brings
   the base, the top bar, buttons, slates, the terminal and the footer. Same system: white paper,
   ink type, neon only as fill, line or glow. */

/* ---------- shared page head ---------- */
.page { position: relative; isolation: isolate; padding: 44px 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.page::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 520px; pointer-events: none;
  background: var(--g-leak), var(--p-dots); background-size: auto, auto, auto, var(--p-dots-size);
  -webkit-mask-image: linear-gradient(#000 0%, #000 18%, transparent 100%); mask-image: linear-gradient(#000 0%, #000 18%, transparent 100%);
}
.page .slate { margin-bottom: 30px; }
.page h1 { font-size: clamp(54px, 8vw, 112px); }
.page-lede { margin-top: 24px; font-size: clamp(19px, 1.5vw, 21.5px); line-height: 1.5; max-width: 34em; }
.nav a[aria-current="page"] { background: var(--volt); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- legal layout ---------- */
.legal-grid { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 72px; align-items: start; margin-top: clamp(44px, 5vw, 68px); }
.legal-side { position: sticky; top: 92px; display: grid; gap: 28px; }
.side-h { font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.side-pages { display: grid; gap: 6px; }
.side-pages a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); color: var(--ink); text-decoration: none; font: 700 16px/1.2 var(--f-text); transition: background-color var(--t-fast); }
.side-pages a:hover { background: var(--volt-tint); }
.side-pages a:focus-visible { border-radius: var(--r-pill); }
.side-pages a[aria-current="page"] { background: var(--volt); border-color: var(--ink); }
.side-pages a[aria-current="page"]::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); flex: none; }
.side-toc { display: grid; gap: 2px; counter-reset: toc; border-left: var(--bw) solid var(--ink); padding-left: 14px; }
.side-toc a { counter-increment: toc; display: grid; grid-template-columns: 26px minmax(0, 1fr); padding: 5px 0; color: var(--ink-2); text-decoration: none; font-size: 15.5px; line-height: 1.3; }
.side-toc a::before { content: counter(toc, decimal-leading-zero); font: 500 11.5px/1.75 var(--f-mono); color: var(--ink-3); }
.side-toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rec); text-decoration-thickness: 2px; }

/* ---------- prose ---------- */
.prose { max-width: 44em; counter-reset: sec; min-width: 0; }
.prose section { padding: 34px 0 36px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.prose section:first-of-type { border-top: var(--bw) solid var(--ink); }
.prose h2 { counter-increment: sec; font-size: clamp(30px, 3vw, 38px); line-height: 1.02; margin-bottom: 16px; display: flex; align-items: baseline; gap: 14px; text-wrap: balance; }
.prose h2::before { content: counter(sec, decimal-leading-zero); flex: none; position: relative; top: -.42em; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; color: #fff; background: var(--ink); border-radius: var(--r-pill); padding: 5px 9px 4px; }
.prose h3 { font: 800 19px/1.25 var(--f-text); letter-spacing: 0; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.55; }
.prose p + p, .prose ul + p, .prose p + ul, .prose dl + p, .prose p + dl { margin-top: 12px; }
.prose ul { display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--volt); border: 1.5px solid var(--ink); }
.prose address { font-style: normal; font-size: 17.5px; line-height: 1.75; color: var(--ink); }
.prose p + address, .prose address + p { margin-top: 12px; }
.prose code { background: var(--paper-2); white-space: normal; }
.updated { margin-top: 8px; font: 500 12.5px/1.5 var(--f-mono); color: var(--ink-3); }

/* a field the founder must fill in before launch */
.fill { font: 500 .86em/1.2 var(--f-mono); color: var(--ink); background: var(--volt-tint); border: 1px dashed var(--ink); border-radius: 5px; padding: .12em .42em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* a note that something is open: semantic, never neon */
.todo { background: var(--warn-tint); border: 1px solid var(--warn); border-radius: var(--r-m); padding: 16px 20px 18px; color: var(--ink); }
.todo-h { display: flex; align-items: center; gap: 9px; font: 700 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--warn); margin-bottom: 6px; }
.todo-h::before { content: "!"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--warn); color: #fff; display: grid; place-items: center; font: 700 13px/1 var(--f-mono); letter-spacing: 0; }
.prose .todo p, .todo p { font-size: 16px; line-height: 1.5; }
.prose .todo { margin: 16px 0 4px; }
.prose > .todo { margin: 0 0 36px; }

/* the provider card on the imprint, a key object: ink outline and one underglow */
.idcard { position: relative; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-l); box-shadow: var(--under-volt); padding: 26px 28px 28px; margin: 4px 0 18px; }
.idcard dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 36px; margin-top: 20px; }
.prose .idcard-h { display: flex; align-items: center; gap: 9px; font: 900 27px/1 var(--f-display); color: var(--ink); padding-bottom: 16px; border-bottom: var(--bw) solid var(--ink); }
.idcard-h .mark-dot { animation: none; }
.idcard dt, .kv dt { font: 500 11.5px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.idcard dd { font-size: 17.5px; line-height: 1.75; color: var(--ink); }
.kv { display: grid; gap: 16px; }
.kv > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { margin: 4px 0 0; }
.kv dd { font-size: 17px; line-height: 1.5; }


/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - 64px - 150px); display: grid; align-items: center; }
.nf-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.nf h1 { font-size: clamp(50px, 6.6vw, 96px); }
.nf .cta-row { margin-top: 28px; }
.nf-art { position: relative; isolation: isolate; padding: 10px 26px 26px 0; }
.nf-n { position: relative; display: inline-block; font: 900 clamp(150px, 21vw, 290px)/.8 var(--f-display); letter-spacing: -.02em; color: var(--ink); background: var(--g-marker) no-repeat 0 62% / 100% 70%; padding: 0 .08em; margin-bottom: 26px; animation: pr-swipe .5s var(--ease) .4s backwards; }
.nf-n::after { content: ""; position: absolute; z-index: -1; right: -.12em; top: .06em; width: .46em; aspect-ratio: 9 / 16; border-radius: .06em; background: var(--rec); mix-blend-mode: multiply; transform: rotate(7deg); }
.nf-term .t-cmd { font-size: clamp(19px, 2vw, 25px); overflow-wrap: anywhere; }
.nf-term .t-line { font-size: 13px; white-space: normal; }
#nf-path { margin-left: .5em; }
.t-err { color: var(--rec-hot); text-shadow: var(--glow-text-rec); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .legal-side { position: static; gap: 22px; }
  .side-pages { display: flex; flex-wrap: wrap; gap: 8px; }
  .side-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .nf-grid { grid-template-columns: minmax(0, 1fr); }
  .nf-art { order: -1; padding-bottom: 0; }
  .nf-term { max-width: 520px; }
}
@media (max-width: 640px) {
  .page { padding-top: 30px; }
  .side-toc { grid-template-columns: minmax(0, 1fr); }
  .idcard { padding: 22px 20px 22px; box-shadow: var(--under-volt-s); }
  .idcard dl { grid-template-columns: minmax(0, 1fr); }
  .kv > div { grid-template-columns: minmax(0, 1fr); }
  .prose p, .prose li { font-size: 17px; }
  .nf-term { display: none; }
}
.form-box { border: 1.5px dashed var(--ink-3); border-radius: var(--r-m); padding: 16px 20px; margin: 16px 0; }

/* ---------- added for the Wake theme ---------- */
/* thank-you page after the checkout */
.thanks .slate { margin-bottom: 30px; }
.thanks h1 { font-size: clamp(48px, 7vw, 96px); max-width: 14em; }
.thanks-body { margin-top: 40px; max-width: 760px; display: grid; gap: 14px; }
.thanks-body h3 { font: 800 24px/1.2 var(--f-display); margin-top: 18px; }
.thanks-body p { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.thanks-body a { color: var(--rec-text); }
