:root {
  color-scheme: light dark;
  --background: #f5f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #616b7d;
  --line: #dbe1eb;
  --accent: #315fc5;
  --accent-soft: #e8efff;
  --header: #244da8;
  --header-text: #ffffff;
  --code: #eef2f8;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.header-inner {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #ffffff;
  color: var(--header);
  font-size: 18px;
  line-height: 1;
}

.header-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.contents {
  position: sticky;
  top: 96px;
  padding: 46px 0;
}

.contents-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.contents nav {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.contents a {
  padding: 5px 0 5px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.contents a:hover,
.contents a:focus-visible {
  color: var(--accent);
}

.policy {
  min-width: 0;
  margin: 32px 0 64px;
  padding: 48px 64px 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-heading {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: 38px;
}

h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

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

section {
  padding-top: 38px;
}

p {
  margin: 12px 0;
}

ul {
  margin: 14px 0;
  padding-left: 24px;
}

li + li {
  margin-top: 6px;
}

code {
  padding: 2px 5px;
  background: var(--code);
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.service-links a,
.contact-link {
  font-weight: 600;
}

footer {
  padding: 24px 20px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .page-shell {
    display: block;
  }

  .contents {
    position: static;
    padding: 24px 0 0;
  }

  .contents nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    border-left: 0;
  }

  .contents a {
    padding: 5px 0;
  }

  .policy {
    margin-top: 24px;
  }
}

@media (max-width: 600px) {
  .header-inner,
  .page-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-label {
    display: none;
  }

  .contents {
    display: none;
  }

  .policy {
    margin: 16px 0 36px;
    padding: 30px 22px 38px;
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 21px;
  }

  section {
    padding-top: 32px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #10131a;
    --surface: #181d27;
    --text: #edf1f8;
    --muted: #aab3c2;
    --line: #343b49;
    --accent: #91b1ff;
    --accent-soft: #25365d;
    --header: #1c3d86;
    --code: #272e3a;
  }
}

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