:root {
  --bg: #ffffff;
  --text: #1f2430;
  --muted: #5b6472;
  --border: #e3e6eb;
  --accent: #1f6feb;
  --card-bg: #f7f8fa;
  --max-width: 780px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.25rem;
}

.site-header .brand {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-header .brand a.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.legal-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus {
  color: var(--accent);
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  font-size: 1.9rem;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

h1 + .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

p, li {
  color: var(--text);
}

ul, ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.4rem;
}

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

.intro {
  color: var(--muted);
  font-size: 1.05rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

footer.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

footer.site-footer a {
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --text: #e7e9ec;
    --muted: #9aa4b2;
    --border: #2a2f37;
    --accent: #6aa9ff;
    --card-bg: #1b1f26;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.15rem;
  }
}
