/* SettleUp legal pages — shared styles.
   Deliberately self-contained (no build step, no external fonts/CDN) so the
   directory can be deployed to Cloudflare Pages by direct upload or Git with
   zero tooling. Light/dark aware via prefers-color-scheme. */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1b2436;
  --ink-soft: #4a5468;
  --ink-faint: #6b7280;
  --brand: #1b2436;
  --accent: #2563eb;
  --border: #e5e7eb;
  --radius: 14px;
  --maxw: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1422;
    --surface: #161e2e;
    --ink: #eef1f6;
    --ink-soft: #b8c0cf;
    --ink-faint: #8b94a6;
    --brand: #eef1f6;
    --accent: #6ea8ff;
    --border: #25304422;
    --border: #2a3344;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.65;
  font-size: 17px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 80px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: 0 0 auto;
  display: block;
  object-fit: cover;
}

.brand-name { font-weight: 700; font-size: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
}

h1 {
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.6px;
}

.updated { color: var(--ink-faint); font-size: 14px; margin: 0 0 26px; }

h2 {
  font-size: 20px;
  margin: 34px 0 10px;
  letter-spacing: -0.3px;
}

h3 { font-size: 17px; margin: 22px 0 6px; }

p, li { color: var(--ink-soft); }
p { margin: 0 0 14px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 8px; }

.lede {
  font-size: 18px;
  color: var(--ink);
}

.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.callout p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { color: var(--ink); font-weight: 600; }
td { color: var(--ink-soft); }

.note {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-faint);
  background: color-mix(in srgb, var(--ink-faint) 12%, transparent);
  border-radius: 6px;
  padding: 1px 7px;
}

footer.site {
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding: 22px 20px 0;
  border-top: 1px solid var(--border);
  color: var(--ink-faint);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}
footer.site a { color: var(--ink-faint); }
