/*
 * The document pages (the privacy policy at 5.2, the terms at 5.3): one
 * reading column in the app's own colours, so a page opened from the register
 * screen or from a store listing looks like the app that linked it. The
 * colours are the tokens generated from the app's file (tokens.css, never
 * edited by hand); the header is the shared <sagacrew-brand> (brand.js and
 * brand.css), bounded here to the same column as the text. Not linked to
 * site.css, which centres a single block for the placeholders.
 *
 * The column's width is measured in the type's own size (Tiago, 2026-09-07):
 * a line of running text reads best between 45 and 75 characters (WCAG 1.4.8
 * puts the ceiling at 80), so a bigger screen gets bigger type and the column
 * grows with it, never a wider line. 44em is about 75 characters of this
 * font; the steps below raise the type from 15 px on a phone to 18 px on a
 * large monitor, and every size in the file is in rem or em so it follows.
 */
:root {
  font-size: 15px;
}

@media (min-width: 640px) {
  :root {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  :root {
    font-size: 17px;
  }
}

@media (min-width: 1440px) {
  :root {
    font-size: 18px;
  }
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.brand-bar,
.document {
  width: 100%;
  max-width: 44em;
  margin: 0 auto;
  box-sizing: border-box;
}

.document {
  padding: 1.5rem 24px 3rem;
}

.document h1 {
  margin: 0 0 0.25rem;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* The version line under the title: which text the reader is looking at. */
.document .meta {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.document h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

/* The generated policies' two lower levels: a section inside a chapter, and a heading inside that. */
.document h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.document h4 {
  margin: 1rem 0 0.25rem;
  font-size: 1rem;
  line-height: 1.3;
}

.document p,
.document li {
  margin: 0 0 0.8em;
  font-size: 1rem;
}

.document ul {
  margin: 0 0 0.8em;
  padding-left: 1.25em;
}

.document li {
  margin-bottom: 0.5em;
}

.document a {
  color: var(--color-accent);
  text-underline-offset: 0.2em;
}

.document strong {
  font-weight: 600;
}

/* The links at the foot: the other document, the site, the address. */
.document footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.document footer a {
  margin-right: 1em;
}
