/* goonbate.com/terms and /privacy. Same tokens as style.css (frame, faces, red, ink alphas) so the pages sit in the family.
   plain long-form reading: one column, no scripts, no motion. built by legal-src/build.py */

:root {
  --frame: clamp(1.25rem, 3vw, 2.5rem);
  --display: 'Helvetica Neue Condensed Bold', 'Helvetica Neue Condensed', 'Arial Narrow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --text: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --red: #ff0000;
  --ink: #f2ede4;
  --ink-80: rgba(242, 237, 228, 0.8);   /* 12.6:1 on black */
  --ink-60: rgba(242, 237, 228, 0.6);   /* 8.2:1 on black */
  --ink-40: rgba(242, 237, 228, 0.4);   /* 4.6:1 on black, fine print only */
  --ink-12: rgba(242, 237, 228, 0.12);
}

::selection { background: var(--red); color: #000; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: #000; color: var(--ink); font-family: var(--text); -webkit-font-smoothing: antialiased; min-height: 100vh; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover { color: var(--red); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* the bar: the wordmark home on the left, the two documents on the right */
.legal__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: var(--frame); max-width: calc(44rem + 2 * var(--frame)); margin: 0 auto; }
.legal__home { display: block; text-decoration: none; }
.legal__home img { display: block; height: clamp(18px, 2.4vw, 24px); width: auto; }
.legal__bar nav { display: flex; gap: 1.25rem; font: 700 .8rem/1 var(--display); font-stretch: condensed; letter-spacing: .14em; text-transform: uppercase; }
.legal__bar nav a { text-decoration: none; color: var(--ink-60); }
.legal__bar nav a:hover, .legal__bar nav a[aria-current] { color: var(--ink); }
.legal__bar nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .4em; }

/* the reading column */
.legal { max-width: calc(44rem + 2 * var(--frame)); margin: 0 auto; padding: clamp(1.5rem, 6vw, 4rem) var(--frame) clamp(3rem, 8vw, 6rem); }
.legal__title { font: 700 clamp(4rem, 17vw, 9.5rem)/.8 var(--display); font-stretch: condensed; letter-spacing: -.02em; text-transform: lowercase; margin: 0 0 1.75rem -.04em; }
.legal > p:first-of-type { color: var(--ink-60); font-size: .92rem; line-height: 1.7; }

.legal h2 { display: flex; align-items: baseline; gap: .6em; font: 700 clamp(1.5rem, 3.4vw, 2.05rem)/1 var(--display); font-stretch: condensed; letter-spacing: -.01em; text-transform: lowercase; margin: 3.25rem 0 1.1rem; padding-top: 1.4rem; border-top: 1px solid var(--ink-12); scroll-margin-top: 1.5rem; }
.legal__n { color: var(--red); font-variant-numeric: tabular-nums; min-width: 1.35em; }
.legal h3 { font: 700 .72rem/1.4 var(--display); font-stretch: condensed; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-60); margin: 2.4rem 0 .9rem; }

.legal p, .legal li { color: var(--ink-80); font-size: 1rem; line-height: 1.68; overflow-wrap: anywhere; }
.legal p { margin: 0 0 1rem; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal code { font: 500 .88em/1 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ink); }
.legal ul, .legal ol { margin: 0 0 1.2rem; display: grid; gap: .5rem; }
.legal ul { list-style: none; }
.legal ul li { position: relative; padding-left: 1.4em; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: .82em; width: .7em; height: 2px; background: var(--red); }
.legal ol { padding-left: 1.6em; }
.legal ol li::marker { color: var(--ink-40); font-variant-numeric: tabular-nums; }
.legal hr { border: 0; border-top: 1px solid var(--ink-12); margin: 2.5rem 0 0; }

/* "the short version": set apart and a touch larger, it is what most people read */
.legal h3 + ul { gap: .7rem; padding-bottom: .4rem; }
.legal h3 + ul li { font-size: 1.06rem; color: var(--ink); }

.legal__foot { max-width: calc(44rem + 2 * var(--frame)); margin: 0 auto; padding: 2rem var(--frame) 3rem; border-top: 1px solid var(--ink-12); display: grid; gap: .6rem; font-size: .76rem; line-height: 1.6; color: var(--ink-40); }
.legal__foot a { color: var(--ink-60); }
.legal__foot .sep { margin: 0 .6em; color: var(--red); }

@media print {
  body { background: #fff; color: #000; }
  .legal p, .legal li, .legal strong, .legal h3 { color: #000; }
  .legal__bar nav, .legal__foot { display: none; }
}
