:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5d6673;
  --subtle: #eef2f6;
  --paper: #ffffff;
  --page: #f7f9fc;
  --line: #d8e0e8;
  --brand: #12384a;
  --brand-strong: #0b2431;
  --accent: #d89b28;
  --accent-soft: #fff3d7;
  --link: #075f8f;
  --shadow: 0 18px 48px rgba(16, 24, 32, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(18, 56, 74, 0.08), rgba(247, 249, 252, 0) 360px),
    var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

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

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.16);
}

.brand span {
  font-size: 1.12rem;
  letter-spacing: 0;
}

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

.site-nav a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a {
  color: var(--brand);
}

.site-nav a:hover {
  background: rgba(18, 56, 74, 0.08);
}

.button {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 56, 74, 0.20);
}

.button:hover {
  background: var(--brand-strong);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  color: var(--brand);
  border: 1px solid var(--line);
  box-shadow: none;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 28px 0 72px;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  margin: 0;
}

.document-page h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: 1.32rem;
  margin: 40px 0 10px;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

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

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 680px;
  margin-top: 20px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.doc-card,
.document-sidebar,
.legal-document {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doc-card {
  display: block;
  padding: 24px;
  text-decoration: none;
}

.doc-card + .doc-card {
  margin-top: 16px;
}

.doc-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.doc-card span {
  color: var(--muted);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-strip div {
  background: #ffffff;
  padding: 16px;
}

.status-strip strong {
  display: block;
  color: var(--brand);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.status-strip span {
  color: var(--muted);
  font-size: 0.94rem;
}

.document-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 30px 0 72px;
}

.document-sidebar {
  position: sticky;
  top: 24px;
  padding: 22px;
}

.document-sidebar img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.document-sidebar h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.document-sidebar p,
.document-sidebar li {
  color: var(--muted);
  font-size: 0.96rem;
}

.side-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.side-links a {
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.side-links a:hover,
.side-links a[aria-current="page"] {
  background: var(--accent-soft);
}

.legal-document {
  padding: clamp(26px, 5vw, 58px);
}

.legal-document .summary {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 18px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 34px;
}

.doc-meta span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--subtle);
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 10px;
}

.legal-document section {
  border-top: 1px solid var(--line);
  padding-top: 2px;
}

.site-footer {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 28px 0 44px;
  text-align: center;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 28px, 720px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .home-hero,
  .document-layout {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding-top: 36px;
  }

  .document-sidebar {
    position: static;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.55rem;
  }
}
