/* /privacy — a calm, readable legal page. Tokens and components from site.css.
   Each numbered part is its own section, so the page has a contents list and a ruler like every
   other sheet; the rule above each heading is drawn when the heading comes on screen. */

.legal { padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 9vw, 120px); }
.legal-body { max-width: 68ch; }
.legal h1 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem); font-weight: 740; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1.05; }
.legal .updated { margin-top: 14px; color: var(--ink-3); }
.legal .intro { margin-top: 20px; color: var(--ink-2); }

.legal-sec { scroll-margin-top: 84px; }
.legal h2 {
  position: relative; display: flex; align-items: baseline; gap: 12px;
  margin-top: 44px; padding-top: 28px;
  font-size: 1.25rem; font-weight: 680; letter-spacing: -0.012em; line-height: 1.25;
}
.legal h2::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--pen-1, 1px); background: var(--line-2);
  transform-origin: left center;
  transition: transform var(--t-rule, 700ms) var(--ease-pen, cubic-bezier(.65, 0, .35, 1)) 100ms;
}
html.ink .legal h2[data-ink]:not(.is-inked)::before { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .legal h2::before { transition: none !important; } }
.legal h2 .num { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal h2 + p, .legal h2 + ul { margin-top: 14px; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 14px; }
.legal ul { list-style: none; display: grid; gap: 10px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 8px; height: 1px; background: var(--ink-3); }
.legal strong { color: var(--ink); font-weight: 650; }
.legal a { color: var(--accent); }

/* the legal identity is the title block of this sheet: ink edge, square corners */
.identity {
  margin-top: 16px; padding: 16px 18px 17px; max-width: 46ch;
  background: var(--sheet); border: var(--pen-1, 1px) solid var(--ink); border-radius: 2px;
  font-style: normal; color: var(--ink-2); line-height: 1.7;
}
.identity strong { font-size: 1.0625rem; }

.legal .imprint h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.1rem); margin-top: 64px; padding-top: 40px; }
.legal .imprint h2::before { background: var(--ink); }

/* plan view: the dashed section outlines of the other sheets would box every paragraph here */
.plan-view .legal > section { outline: 0; }
