:root {
  color-scheme: light;
  --background: #f6f8fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5d6a7e;
  --border: #dbe2ea;
  --accent: #007c89;
  --accent-strong: #005f68;
}

* {
  box-sizing: border-box;
}

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

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

a:hover {
  color: var(--accent-strong);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100vw - 960px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 700;
}

.page-shell {
  width: min(100% - 32px, 880px);
  margin: 40px auto;
}

.legal-document {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 56px);
}

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

h1 {
  font-size: clamp(30px, 5vw, 44px);
}

h2 {
  margin-top: 34px;
  font-size: 22px;
}

h3 {
  margin-top: 24px;
  font-size: 18px;
}

p,
ul,
pre {
  margin: 0 0 16px;
}

ul {
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

code {
  background: #eef3f7;
  border-radius: 4px;
  padding: 2px 5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94em;
}

pre {
  overflow-x: auto;
  background: #172033;
  color: #f7fbff;
  border-radius: 8px;
  padding: 16px;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.link-list {
  display: grid;
  gap: 14px;
  padding-left: 0;
  list-style: none;
}

.link-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.link-list a {
  display: block;
  font-weight: 700;
  text-decoration: none;
}

.link-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  width: min(100% - 32px, 880px);
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .page-shell {
    margin: 24px auto;
  }
}
