/* Shared styling for the Workbox legal pages (privacy, terms). Warm-paper
   monochrome, same tokens/fonts as the main site, tuned for long-form reading.
   Typography follows Apple's guidance (WWDC "Details of UI Typography"):
   size-specific tracking, leading that tracks size inversely, hierarchy built
   from weight + size + leading as a set, and rem-based sizing that respects the
   reader's text-size setting (Dynamic Type). */
:root {
  --bg: #fcfaf5;
  --ink: #1c1a17;
  --ink-2: #5d574e;
  --ink-3: #a29c90;
  --hairline: rgba(60, 50, 30, 0.09);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  /* body reading text: comfortable size + generous leading, tracking at 0
     (negative tracking hurts legibility in long-form copy) */
  font: 400 1rem/1.65 var(--font-sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.legal {
  /* ~72-char measure at this size — the readable range for long-form */
  max-width: 37rem;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 6rem;
}
.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.legal-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 0.875rem/1 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.legal-home img {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 5px;
}
.legal-updated {
  /* small mono: slight positive tracking for legibility at small sizes */
  font: 400 0.72rem/1 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.legal h1 {
  margin: 0 0 0.625rem;
  font-size: 1.75rem;
  line-height: 1.12; /* tight leading for large display text */
  font-weight: 600;
  letter-spacing: -0.021em; /* negative tracking as the type grows */
}
.legal .lead {
  margin: 0 0 2rem;
  font-size: 1.0625rem; /* a step above body, sets the intro apart */
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.legal h2 {
  /* clearly above body in size AND weight AND leading, not weight alone;
     the large top margin groups each heading with the section it opens */
  margin: 2.25rem 0 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--ink);
}
.legal p {
  margin: 0 0 0.875rem;
  color: var(--ink-2);
  text-wrap: pretty;
}
.legal ul {
  margin: 0 0 0.875rem;
  padding-left: 1.25rem;
  color: var(--ink-2);
}
.legal li {
  margin: 0 0 0.4375rem;
  text-wrap: pretty;
}
.legal strong {
  color: var(--ink);
  font-weight: 600;
}
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-3);
  transition: text-decoration-color 0.18s ease;
}
.legal a:hover {
  text-decoration-color: currentColor;
}
.legal-foot {
  margin-top: 2.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  font: 400 0.75rem/1.7 var(--font-mono);
  letter-spacing: 0.01em;
  color: var(--ink-3);
}
.legal-foot a {
  text-decoration-color: var(--ink-3);
}
