/* innuga.com · Privacy, Terms and 404 · on top of tokens.css and site.css
   Privacy and Terms: Paper (title + the short version on the right) → White (contents on the left, the long version on the right).
   404: Paper (title, then the routes on the right). Inner classes carry the lg- prefix. */


/* ===== title + the short version ===== */
.lg-hero { background: var(--paper); padding-top: clamp(56px, 6.6vw, 96px); padding-bottom: clamp(64px, 7vw, 112px); }
.lg-h1 { grid-column: 1 / 8; align-self: end; max-width: 8ch; font-size: clamp(3rem, 9vw, 8.5rem); line-height: 0.9; } /* two lines, so the title stands as tall as the card beside it */
.lg-short { grid-column: 9 / 13; align-self: end; background: var(--white); padding: var(--s-3); display: grid; gap: var(--s-2); justify-items: start; }
.lg-short p { line-height: 1.45; }
.lg-meta { color: var(--stone); font-size: var(--fs-caption); line-height: 1.4; letter-spacing: 0.01em; }
@media (max-width: 860px) {
  .lg-h1, .lg-short { grid-column: 1 / -1; }
  .lg-short { margin-top: var(--s-4); }
}


/* ===== contents + the long version ===== */
.lg-body { background: var(--white); padding-block: clamp(64px, 7vw, 112px) var(--section); }
.lg-toc { grid-column: 1 / 4; align-self: start; position: sticky; top: calc(var(--nav-h) + 32px); }
.lg-toc-t { font-size: var(--fs-caption); font-weight: 500; letter-spacing: 0.01em; color: var(--stone); }
.lg-toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: lg-toc; }
.lg-toc li { counter-increment: lg-toc; }
.lg-toc a { display: grid; grid-template-columns: 2.25em 1fr; padding: 7px 0; font-size: 0.9375rem; line-height: 1.3; font-weight: 500; text-decoration: none; }
.lg-toc a::before { content: counter(lg-toc, decimal-leading-zero); color: var(--stone); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .lg-toc a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 0.22em; } }

.lg-doc { grid-column: 5 / 12; counter-reset: lg-sec; }
.lg-sec { counter-increment: lg-sec; scroll-margin-top: calc(var(--nav-h) + 24px); padding-top: var(--s-4); }
.lg-sec:first-child { padding-top: 0; }
.lg-sec + .lg-sec { margin-top: var(--s-4); border-top: 1px solid var(--sand); }
.lg-h { font: 800 var(--fs-h3)/1.05 var(--font-display); letter-spacing: var(--track-h3); text-wrap: balance; display: grid; grid-template-columns: 2.4ch 1fr; column-gap: 0.5ch; }
.lg-h::before { content: counter(lg-sec, decimal-leading-zero); color: var(--stone); font-variant-numeric: tabular-nums; }
.lg-sec > :not(.lg-h) { margin-top: var(--s-2); max-width: 66ch; }
.lg-sec > .lg-h + * { margin-top: var(--s-3); }
.lg-sec b { font-weight: 500; }
.lg-sec code { font: 500 0.92em/1 ui-monospace, "SF Mono", Menlo, monospace; padding: 2px 6px; background: var(--sand); } /* cookie names */
.lg-sec a:not(.btn) { font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; text-decoration-color: var(--amber); }
.lg-sec ul, .lg-sec ol { margin-left: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lg-sec ul li { position: relative; padding-left: 26px; }
.lg-sec ul li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; background: var(--amber); }
.lg-sec ol { counter-reset: lg-step; }
.lg-sec ol li { counter-increment: lg-step; position: relative; padding-left: 40px; }
.lg-sec ol li::before { content: counter(lg-step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font: 500 0.8125rem/1 var(--font-text); font-variant-numeric: tabular-nums; }
.lg-address { font-style: normal; background: var(--paper); padding: var(--s-2) var(--s-3); line-height: 1.55; }

/* the last word: who to write to */
.lg-ask { margin-top: var(--s-5); background: var(--ink); color: var(--paper); padding: var(--s-4) var(--s-3); display: grid; gap: var(--s-2); justify-items: start; }
.lg-ask .h3 { color: var(--paper); }
.lg-ask p { max-width: 52ch; color: var(--mist); }
.lg-ask .btn { margin-top: 8px; }

@media (max-width: 960px) {
  .lg-toc { grid-column: 1 / 5; }
  .lg-doc { grid-column: 5 / 13; }
}
@media (max-width: 760px) {
  .lg-toc, .lg-doc { grid-column: 1 / -1; }
  .lg-toc { position: static; padding-bottom: var(--s-3); margin-bottom: var(--s-4); border-bottom: 1px solid var(--sand); }
  .lg-ask { margin-top: var(--s-4); }
}


/* ===== 404 ===== */
.lg-lost { background: var(--paper); min-height: calc(100svh - var(--nav-h)); padding-top: clamp(56px, 6.6vw, 96px); padding-bottom: clamp(64px, 7vw, 112px); }
.lg-lost .lg-h1 { grid-column: 1 / 10; grid-row: 1; max-width: 12ch; font-size: clamp(3.25rem, 10vw, 9.5rem); }
/* the standalone mark, Amber on Ink: the one place on the map that still knows where it is */
.lg-mark { grid-column: 10 / 13; grid-row: 1; align-self: end; justify-self: end; width: min(100%, 15rem); display: grid; gap: 12px; }
.lg-mark-tile { aspect-ratio: 1; background: var(--ink); display: grid; place-items: center; }
.lg-mark-tile svg { width: 46%; height: auto; fill: var(--amber); }
.lg-mark p { color: var(--stone); font-size: var(--fs-caption); font-weight: 500; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.lg-lost-lead { grid-column: 1 / 5; margin-top: var(--s-5); align-self: start; }
.lg-routes { grid-column: 6 / 13; margin: var(--s-5) 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.lg-routes li { border-bottom: 1px solid var(--sand); }
.lg-routes a { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--s-3); padding: 22px 0; text-decoration: none; }
.lg-routes b { font: 800 clamp(1.5rem, 2.4vw, 2.125rem)/1.05 var(--font-display); letter-spacing: var(--track-h3); }
.lg-routes small { grid-column: 1; margin-top: 6px; color: var(--stone); font-size: 0.9375rem; line-height: 1.4; }
.lg-routes svg { grid-column: 2; grid-row: 1 / 3; width: 28px; height: auto; fill: var(--ink); rotate: 90deg; transition: translate var(--t-hover) var(--ease-out); }
.lg-routes .is-audit svg { fill: var(--amber); }
@media (hover: hover) and (pointer: fine) { .lg-routes a:hover svg { translate: 6px 0; } .lg-routes a:hover b { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 0.16em; } }
@media (max-width: 860px) {
  .lg-lost .lg-h1, .lg-lost-lead, .lg-routes { grid-column: 1 / -1; }
  .lg-mark { grid-column: 1 / -1; grid-row: auto; justify-self: start; width: 7.5rem; margin-top: var(--s-4); }
  .lg-lost-lead { margin-top: var(--s-4); }
  .lg-routes { margin-top: var(--s-3); }
}
