/* ---------------------------------------------------------------------------
   Shared styles for the legal pages (privacy, terms, subprocessors): the document's layout
   and typography only. Fonts, colour tokens, the wordmark and the paper backdrop come from
   /brand.css, which each page links first (#235), so the brand never drifts here. Nothing on
   these pages loads from a third-party origin: a privacy policy that leaks your IP address to
   a CDN while you read it is not much of a policy.
   --------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- header ---- */
/* A glass bar over the paper backdrop, like the app's top bar. */
.topbar {
  border-bottom: 1px solid var(--glass-edge);
  background-image: var(--glass-bar);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-hi);
}
.topbar .shell {
  display: flex;
  align-items: center;
  height: 64px;
}

/* ---- document ---- */
main {
  padding: 48px 0 72px;
}
h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.updated {
  margin: 0 0 32px;
  color: var(--superseded);
  font-size: 13px;
}
h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 10px;
  padding-top: 8px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 6px;
}
p,
li {
  color: var(--ink-soft);
}
p {
  margin: 0 0 14px;
}
ul,
ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
li {
  margin-bottom: 6px;
}
strong {
  color: var(--ink);
  font-weight: 600;
}
a {
  color: var(--flare-ink);
  text-underline-offset: 2px;
}

/* A short summary panel at the head of a document. */
.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--flare);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 0 0 36px;
}
.summary p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 13.5px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
}
th {
  color: var(--ink);
  font-weight: 600;
  background: var(--surface);
  white-space: nowrap;
}

.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 24px 0 0;
}
.contact p:last-child {
  margin-bottom: 0;
}

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 13px;
}
.footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  color: var(--superseded);
}
.footer a {
  color: var(--superseded);
  text-decoration: none;
}
.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer .spacer {
  margin-left: auto;
}

@media (max-width: 600px) {
  h1 {
    font-size: 27px;
  }
  main {
    padding: 32px 0 48px;
  }
  table {
    font-size: 12.5px;
  }
  th,
  td {
    padding: 8px 8px;
  }
}
