:root {
  color-scheme: light;
  --ink: hsl(220 15% 15%);
  --muted: hsl(220 10% 42%);
  --navy: hsl(220 85% 25%);
  --line: hsl(220 15% 88%);
  --paper: hsl(220 20% 99%);
  --wash: hsl(220 18% 96%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--navy); }
a:hover { text-decoration-thickness: 2px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .75rem 1rem;
  color: white;
  background: var(--navy);
  border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .9rem max(1rem, calc((100vw - 72rem) / 2));
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: .7rem;
  font-weight: 700;
}

nav { display: flex; gap: 1rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }

.policy-shell {
  width: min(100% - 2rem, 72rem);
  margin: 2rem auto;
}

.policy {
  padding: clamp(1.25rem, 4vw, 4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 1rem 3rem rgb(22 34 58 / 7%);
}

h1, h2, h3 { line-height: 1.25; scroll-margin-top: 6rem; }
h1 { margin: 0 0 1rem; color: var(--navy); font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { margin-top: 2.5rem; padding-top: .5rem; border-top: 1px solid var(--line); font-size: 1.45rem; }
h3 { margin-top: 1.75rem; font-size: 1.1rem; }
p, li { max-width: 78ch; }
li + li { margin-top: .4rem; }
code { padding: .1rem .3rem; background: var(--wash); border-radius: .25rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--wash); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 1rem 0 3rem;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 42rem) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .7rem; }
  nav { width: 100%; justify-content: space-between; }
  footer { flex-direction: column; }
}
