/* Static pages can't import src/index.css; these mirror its light/dark tokens. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-card: #f7f7f9;
  --text: #1a1a1a;
  --text-secondary: #6e6e73;
  --border: #d8d8dc;
  --accent: #1c74cc;
}
:root[data-theme="dark"] {
  --bg: #1c1c1e;
  --bg-card: #2c2c2e;
  --text: #f2f2f2;
  --text-secondary: #9a9a9e;
  --border: #48484a;
  --accent: #7ec2ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1c1e;
    --bg-card: #2c2c2e;
    --text: #f2f2f2;
    --text-secondary: #9a9a9e;
    --border: #48484a;
    --accent: #7ec2ff;
  }
}

* {
  box-sizing: border-box;
}

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

.legal-nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.legal-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.legal-nav .langs {
  display: flex;
  gap: 1rem;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

h1,
.h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 1rem 0 0.25rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}

p,
ul {
  margin: 0 0 0.85rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

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

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

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0 1rem;
}

footer {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* 3 columns don't fit a phone; stack rows */
@media (max-width: 34rem) {
  thead {
    display: none;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  tr {
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }
  td {
    border: none;
    padding: 0.15rem 0;
  }
}
