/* Shared styling for the hosted legal pages (privacy.html, terms.html).
   Deliberately restrained: these are documents people read under pressure —
   before a purchase, or when they want their data deleted. The palette is
   DESIGN.md's, but the layout is a document, not an app screen. */

:root {
  --paper: #e4d5be;
  --paper-card: #ddd0b8;
  --ink: #2e2620;
  --ink-soft: #4a4035;
  --oxblood: #6e2b2a;
  --hairline: rgba(135, 122, 101, 0.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 20px 96px;
  background: var(--paper);
  color: var(--ink-soft);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main { max-width: 46rem; margin: 0 auto; }

header.doc {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 36px;
}

.wordmark {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 14px;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 600;
}

h2 {
  font-size: 20px;
  color: var(--ink);
  margin: 44px 0 12px;
  font-weight: 600;
  scroll-margin-top: 20px;
}

h3 {
  font-size: 16px;
  color: var(--ink);
  margin: 28px 0 8px;
  font-weight: 600;
}

.meta { font-size: 14px; color: var(--ink-soft); margin: 0; opacity: 0.85; }

p, li { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 8px; }

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

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

/* The plain-English summary that opens each document. */
.summary {
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 20px 22px 6px;
  margin: 0 0 12px;
}
.summary h2 { margin-top: 0; font-size: 17px; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 16px; }

/* Tables carry the processor list and the retention schedule — the two places
   where a wall of prose would hide the answer someone came for. */
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 15px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--hairline);
}
th { color: var(--ink); font-weight: 600; white-space: nowrap; }

hr { border: 0; border-top: 1px solid var(--hairline); margin: 44px 0; }

footer.doc {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  opacity: 0.85;
}

.toc { font-size: 15px; }
.toc ol { margin-bottom: 0; }
.toc li { margin-bottom: 4px; }

@media (max-width: 480px) {
  header.doc { padding-top: 36px; }
  h1 { font-size: 25px; }
}
