/* shorty now — legal pages. Plain, fast, readable on a phone; light and dark. */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1a17;
  --muted: #5f5a52;
  --rule: #e7e3dc;
  --accent: #d6452f;
  --accent-soft: #fbe9e5;
  --code: #f3f0eb;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1a1917;
    --text: #ece8e1;
    --muted: #a8a197;
    --rule: #2c2a26;
    --accent: #ff7a63;
    --accent-soft: #2a1a16;
    --code: #22201d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 0 16px;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 40px 0 64px; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }

nav.site { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.3; margin: 40px 0 12px; padding-top: 8px; text-wrap: balance; }
h3 { font-size: 16px; margin: 24px 0 8px; }

p, li { max-width: 68ch; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

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

.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

.summary {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0 8px;
}
.summary h2 { margin: 0 0 8px; padding: 0; font-size: 16px; }
.summary ul { margin: 0; }

.toc { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 20px; margin: 24px 0; background: var(--surface); }
.toc ol { margin: 8px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; background: var(--code); }
tr:last-child td { border-bottom: 0; }

.caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.01em; }

footer.site { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }

/* Two columns on wide screens (four cards = 2 x 2, no orphan), one on phones. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 24px 0; }
.card { display: block; padding: 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; }
.card strong { display: block; font-size: 17px; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 14px; }
.card:hover { border-color: var(--accent); }
