/* Sundays — legal pages stylesheet
   Shared by privacy.html and terms.html */

:root {
  --paper: #FAF8F4;
  --line:  #E4DFD5;
  --muted: #8C8576;
  --ink:   #1C1A16;
  --accent: #9C7235;
  --accent-ink: #7A5826;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}

::selection { background: var(--accent); color: var(--paper); }

a {
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--accent-ink) 35%, transparent);
  padding-bottom: 1px;
  transition: color 150ms ease, border-color 150ms ease;
}
a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-wide {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .wrap, .wrap-wide { padding: 0 22px; }
}

/* ───── Top bar (matches Sundays.html) ───── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.mark {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  border: 0;
  padding: 0;
}
.mark:hover { color: var(--ink); border: 0; }
.mark-img {
  height: 36px;
  width: auto;
  display: block;
}
.mark-text {
  display: inline-block;
  line-height: 1;
  position: relative;
  top: 1px;
}
.crumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.crumb a {
  color: var(--muted);
  border-bottom: 0;
}
.crumb a:hover { color: var(--ink); border-bottom: 0; }

/* ───── Document header ───── */
.doc-head {
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) {
  .doc-head { padding: 64px 0 40px; }
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--muted);
}

h1.doc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
  max-width: 14ch;
}
h1.doc-title em {
  font-style: italic;
  color: var(--accent);
}

.doc-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.doc-meta span strong {
  color: var(--ink);
  font-weight: 500;
  margin-left: 6px;
}

/* ───── Document body ───── */
.doc-body {
  padding: 56px 0 96px;
}
@media (max-width: 640px) {
  .doc-body { padding: 40px 0 64px; }
}

.doc-body section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.doc-body section:last-of-type {
  border-bottom: 0;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-label .num {
  color: var(--ink);
  font-weight: 500;
}

.doc-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink);
  max-width: 22ch;
}
.doc-body h2 em {
  font-style: italic;
  color: var(--accent);
}

.doc-body p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}
.doc-body p.lede {
  font-size: 18px;
  color: var(--ink);
}
.doc-body p.quiet {
  color: var(--muted);
}

.doc-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.doc-body ul li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
}
.doc-body ul li:last-child {
  border-bottom: 0;
}
.doc-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 1px;
  background: var(--muted);
}
.doc-body ul li strong {
  font-weight: 500;
  color: var(--ink);
}

.doc-body .vendor-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: baseline;
}
.doc-body .vendor-list .vname {
  font-weight: 500;
  color: var(--ink);
}
.doc-body .vendor-list .vrole {
  color: var(--muted);
  font-size: 15px;
}
.doc-body .vendor-list a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .doc-body .vendor-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* The single emphasized callout-style closing line */
.standalone-note {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  color: var(--ink);
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  max-width: 28ch;
}
.standalone-note em {
  font-style: italic;
  color: var(--accent);
}

/* ───── Footer (matches Sundays.html) ───── */
footer.foot {
  background: var(--ink);
  color: color-mix(in oklab, var(--paper) 55%, transparent);
  padding: 56px 0 48px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
footer.foot .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid color-mix(in oklab, var(--paper) 12%, transparent);
  padding-top: 28px;
  gap: 24px;
  flex-wrap: wrap;
}
footer.foot a {
  color: color-mix(in oklab, var(--paper) 80%, transparent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 25%, transparent);
  padding-bottom: 1px;
}
footer.foot a:hover {
  color: var(--paper);
  border-bottom-color: var(--paper);
}
footer.foot .legal-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
footer.foot .legal-row .sep {
  opacity: 0.4;
}
