/* myPager legal pages -- shared styles, matching the app's editorial /
   classifieds-paper look (see mobile/src/theme/tokens.ts) */

:root {
  --bg: #F6F1E4;
  --surface: #FFFDF7;
  --surface-alt: #EFE8D6;
  --border: #DED2B4;
  --divider: #E4D9BE;
  --ink: #211C15;
  --ink-muted: #6E6455;
  --accent: #7C2E2E;
  --accent-muted: #C68F8F;
  --warning: #8A6118;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 96px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

header.site a.brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  text-decoration: none;
}

header.site nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-left: 20px;
}

header.site nav a:hover { color: var(--accent); }

h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  margin: 8px 0 4px;
}

.updated {
  color: var(--ink-muted);
  font-size: 13px;
  margin-bottom: 32px;
}

h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 21px;
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
}

h2:first-of-type { border-top: none; padding-top: 0; }

h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 6px;
}

p, li { color: var(--ink); }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--accent); }

strong { font-weight: 700; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 14px;
}

.callout.notice {
  border-color: var(--warning);
  background: #FBF3E3;
}

.callout p:last-child { margin-bottom: 0; }

.placeholder {
  background: #FBEEDD;
  color: var(--warning);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}

th { color: var(--ink-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }

.legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
}

footer.site {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 60px;
  color: var(--ink-muted);
  font-size: 13px;
}

@media (max-width: 480px) {
  h1 { font-size: 27px; }
  header.site nav a { margin-left: 12px; font-size: 13px; }
}
