:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: #f5f7fc;
  color: #1b2841;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; min-width: 320px; }

a { color: inherit; }

a:focus-visible {
  outline: 3px solid #326be6;
  outline-offset: 4px;
  border-radius: 4px;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer,
.home-main,
.document-main {
  width: min(100% - 48px, 1040px);
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #dde5f2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.04rem;
  font-weight: 750;
  letter-spacing: -.02em;
}

.brand-mark {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 15px #315ed32e;
}

.brand-mark img {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
}

.header-label {
  color: #52617a;
  font-size: .84rem;
  white-space: nowrap;
}

.home-main {
  flex: 1;
  padding-block: clamp(68px, 12vw, 122px) 100px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #315ed3;
  font-size: .78rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .12em;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: #17243c;
  font-size: clamp(2.35rem, 5.8vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #52617a;
  font-size: clamp(1.02rem, 2.1vw, 1.16rem);
  line-height: 1.7;
}

.document-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.document-card {
  min-height: 200px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 27px;
  background: #fff;
  border: 1px solid #e2e8f3;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 14px 35px #203a6b0b;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.document-card:hover {
  transform: translateY(-3px);
  border-color: #a8bff0;
  box-shadow: 0 17px 40px #203a6b17;
}

.card-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e9efff;
  color: #315ed3;
  font-weight: 760;
  font-size: .78rem;
}

.card-content { display: flex; flex-direction: column; gap: 9px; }
.card-title { font-size: 1.12rem; font-weight: 740; letter-spacing: -.02em; }
.card-description { color: #5d6a80; font-size: .94rem; line-height: 1.55; }
.card-arrow { margin-left: auto; color: #315ed3; font-size: 1.3rem; line-height: 1; }

.document-main { flex: 1; max-width: 820px; padding-block: 38px 90px; }

.back-link {
  display: inline-block;
  margin-bottom: 55px;
  color: #315ed3;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}

.back-link:hover,
.site-footer a:hover { text-decoration: underline; }

.document-main h1 { font-size: clamp(2.25rem, 5.3vw, 3.65rem); }
.document-note { margin: 18px 0 32px; color: #627089; font-size: .95rem; }

.policy-paper {
  padding: clamp(26px, 5.2vw, 56px);
  background: #fff;
  border: 1px solid #e2e8f3;
  border-radius: 20px;
  box-shadow: 0 15px 42px #203a6b0b;
  color: #3a475d;
  font-size: 1rem;
  line-height: 1.75;
}

.policy-paper .intro { margin-top: 0; font-size: 1.06rem; }
.policy-paper section + section { margin-top: 32px; }
.policy-paper h2 {
  margin: 0 0 10px;
  color: #1b2841;
  font-size: 1.22rem;
  letter-spacing: -.025em;
  line-height: 1.35;
}
.policy-paper p { margin: 0 0 16px; }
.policy-paper p:last-child { margin-bottom: 0; }
.policy-paper ul { margin: 0; padding-left: 1.35em; }
.policy-paper li { padding-left: .2em; margin: 3px 0; }
.policy-paper a { color: #315ed3; }

.site-footer {
  min-height: 94px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #67758b;
  border-top: 1px solid #dde5f2;
  font-size: .84rem;
}

.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }

@media (max-width: 700px) {
  .site-header,
  .site-footer,
  .home-main,
  .document-main { width: min(100% - 32px, 1040px); }
  .site-header { min-height: 72px; }
  .document-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .document-card { min-height: 155px; }
  .home-main { padding-block: 70px 72px; }
  .back-link { margin-bottom: 42px; }
  .document-main { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .document-card { transition: none; }
}
