:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --text: #1a1d29;
  --text-muted: #5b6072;
  --border: #e7e8ee;
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --max-width: 820px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151f;
    --bg-alt: #1b1d2b;
    --text: #eef0f7;
    --text-muted: #a4a8bd;
    --border: #2a2c3d;
    --brand: #818cf8;
    --brand-dark: #a5b4fc;
  }
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: inline-block;
}

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

nav.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.hero {
  text-align: center;
  padding: 60px 20px 20px;
}

.hero h1 {
  font-size: 36px;
  margin: 0 0 12px;
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.legal h1 {
  font-size: 30px;
  margin-bottom: 4px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 21px;
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal h3 {
  font-size: 16px;
  margin-top: 24px;
}

.legal h4 {
  font-size: 15px;
  margin-top: 20px;
  margin-bottom: 4px;
}

.legal p, .legal li {
  color: var(--text);
  font-size: 15px;
}

.legal ul {
  padding-left: 22px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

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

.legal th {
  background: var(--bg-alt);
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
