:root {
  --ink: #1a1916;
  --muted: #5c5852;
  --paper: #f7f4ee;
  --card: #fffdf8;
  --line: #e4ddd2;
  --accent: #2f4f4f;
  --link: #1f4b45;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype",
    Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

#root {
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.main {
  flex: 1;
  width: min(780px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
}

.kicker {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: 1.15rem;
}

.lede,
.policy p,
.policy li {
  font-size: 1.05rem;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.policy h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
}

.updated {
  color: var(--muted);
  margin: 0 0 2rem;
}

.policy h2 {
  margin: 2.1rem 0 0.6rem;
  font-size: 1.35rem;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  margin: 1rem 0 1.4rem;
  font-size: 0.98rem;
}

.policy th,
.policy td {
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem;
}

.policy th {
  background: #efe8dc;
}

.policy ul {
  padding-left: 1.2rem;
}

@media (max-width: 640px) {
  .policy table,
  .policy thead,
  .policy tbody,
  .policy th,
  .policy td,
  .policy tr {
    display: block;
  }

  .policy thead {
    display: none;
  }

  .policy tr {
    border: 1px solid var(--line);
    margin-bottom: 0.8rem;
    background: var(--card);
  }

  .policy td {
    border: 0;
    border-top: 1px solid var(--line);
  }

  .policy td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    margin-bottom: 0.2rem;
  }
}
