/* The layout the legal documents share, so the privacy policy and the terms read as one set. */

body {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem;
}

h1 {
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  margin: 3.5rem 0 1rem;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3 {
  margin: 1.75rem 0 0.6rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

p,
li {
  margin: 0 0 0.85rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

/* A package name is one unbreakable token wider than a phone screen, and a
   block element takes its minimum width from it — without this the whole
   document scrolls sideways on mobile, where these pages are mostly read. */
code {
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: var(--surface);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

a {
  color: var(--brand-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.updated {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.summary {
  margin: 0 0 1rem;
  padding: 1.5rem 1.6rem 0.65rem;
  border-radius: 1.5rem;
  background: var(--brand-tint);
}

.summary p:last-child {
  margin-bottom: 0.85rem;
}

main > footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}
