* {
  box-sizing: border-box;
}

:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #566276;
  --line: #d9dee8;
  --brand: #1557a6;
  --brand-dark: #0f3f78;
  --accent: #0f7b62;
  --focus: #b45309;
  --max: 1040px;
}

html {
  color-scheme: light;
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-dark);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  min-width: 0;
}

.brand-name {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.app-names {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcff;
  color: var(--brand-dark);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  background: #e9f2ff;
  border-color: #a9c7ed;
}

.page {
  padding: 42px 0 56px;
}

.document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: #111827;
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: 0;
}

h2 {
  margin: 36px 0 12px;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
}

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

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 1.35rem;
}

li {
  margin: 8px 0;
}

.lead {
  margin-top: 16px;
  color: #344054;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.notice {
  margin: 24px 0;
  padding: 16px;
  border-left: 4px solid var(--brand);
  background: #eef6ff;
  color: #25364d;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcff;
}

.label {
  display: inline;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.value {
  display: inline;
  margin-left: 4px;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #101828;
  color: #e5e7eb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: #d8eaff;
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .nav a {
    flex: 1 1 180px;
    justify-content: center;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }
}

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

  .document {
    padding: 20px;
  }
}
