:root {
  color-scheme: light;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --text: #18181b;
  --muted: #52525b;
  --subtle: #71717a;
  --surface: #ffffff;
  --background: #f4f4f5;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --page: 920px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

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

.header-inner,
.page,
.footer-inner {
  width: min(var(--page), calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.button:hover {
  color: var(--text);
  border-color: #a1a1aa;
  background: #fafafa;
}

.page {
  padding: 72px 0 88px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.25;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 42px;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 24px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: 0;
}

p,
ul {
  margin-top: 0;
}

.lead {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 20px;
}

.updated {
  margin-bottom: 0;
  color: var(--subtle);
  font-size: 14px;
}

.contents {
  margin: 40px 0 8px;
  padding: 24px 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.contents strong {
  display: block;
  margin-bottom: 10px;
}

.contents ol {
  columns: 2;
  column-gap: 48px;
  margin: 0;
  padding-left: 22px;
}

.contents li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.policy-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.policy-section:last-of-type {
  border-bottom: 0;
}

.policy-section p:last-child,
.policy-section ul:last-child {
  margin-bottom: 0;
}

.policy-section li + li {
  margin-top: 8px;
}

.definition {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  gap: 12px 28px;
  margin: 20px 0 0;
}

.definition dt {
  color: var(--subtle);
  font-size: 14px;
  font-weight: 600;
}

.definition dd {
  margin: 0;
}

.notice {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--primary);
  background: #eff6ff;
}

.site-footer {
  border-top: 1px solid var(--border-strong);
  background: var(--surface);
}

.footer-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 24px;
  padding-bottom: 24px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  font-size: 14px;
}

@media (max-width: 700px) {
  .header-inner,
  .page,
  .footer-inner {
    width: min(100% - 32px, var(--page));
  }

  .header-inner {
    min-height: 60px;
  }

  .header-actions > a:not(.button) {
    display: none;
  }

  .page {
    padding: 48px 0 64px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 18px;
  }

  .contents ol {
    columns: 1;
  }

  .definition {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .definition dd + dt {
    margin-top: 12px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .header-actions .button {
    padding-inline: 12px;
  }

  h1 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
