:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --ink: #111111;
  --muted: #686762;
  --line: #d9d7d0;
  --soft: #eeece5;
  --content: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-header,
.site-footer {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: -0.04em;
}

nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
}

.legal-home {
  width: min(100% - 48px, 1160px);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 148px) 0 clamp(96px, 12vw, 170px);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
.document-card strong {
  letter-spacing: -0.045em;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 10vw, 132px);
  font-weight: 400;
  line-height: 0.89;
}

.lede {
  max-width: 610px;
  margin: 42px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 76px;
}

.document-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 142px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.document-card:hover {
  background: #fff;
  transform: translateY(-2px);
}

.document-number {
  align-self: start;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.document-card strong,
.document-card small {
  display: block;
}

.document-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.1;
}

.document-card small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.arrow {
  font-size: 23px;
}

.legal-layout {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 220px minmax(0, var(--content));
  gap: clamp(48px, 8vw, 120px);
  justify-content: center;
  padding: 76px 0 120px;
}

.document-index {
  position: sticky;
  top: 36px;
  align-self: start;
}

.document-index p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.document-index a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.document-index a:hover {
  color: var(--ink);
}

.legal-document header {
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.legal-document h1 {
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.96;
}

.effective-date {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-document section {
  padding: 48px 0 8px;
  scroll-margin-top: 30px;
}

.legal-document h2 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
  line-height: 1.12;
}

.legal-document h3 {
  margin: 32px 0 10px;
  font-size: 17px;
  line-height: 1.35;
}

.legal-document p,
.legal-document li {
  color: #31312f;
}

.legal-document p {
  margin: 0 0 18px;
}

.legal-document ul {
  margin: 0 0 22px;
  padding-left: 1.3em;
}

.legal-document li {
  margin: 8px 0;
  padding-left: 0.2em;
}

.support-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.support-action {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.support-action strong,
.support-action span {
  display: block;
}

.support-action strong {
  font-size: 15px;
}

.support-action span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.support-action:hover {
  background: #fff;
}

.support-checklist {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.support-checklist p:last-child,
.support-checklist ul:last-child {
  margin-bottom: 0;
}

.plain-language {
  margin: 30px 0 0;
  padding: 22px 24px;
  border-left: 3px solid var(--ink);
  background: var(--soft);
  color: var(--ink);
  font-size: 15px;
}

.data-table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  min-height: 92px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .document-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .site-footer,
  .legal-home,
  .legal-layout {
    width: min(100% - 34px, 1160px);
  }

  .site-header {
    min-height: 76px;
  }

  nav {
    gap: 18px;
  }

  .document-grid {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .support-actions {
    grid-template-columns: 1fr;
  }

  .document-card {
    min-height: 120px;
    padding: 22px;
  }

  .legal-layout {
    display: block;
    padding-top: 54px;
  }

  .document-index {
    display: none;
  }

  .legal-document header {
    padding-bottom: 40px;
  }

  .legal-document section {
    padding-top: 40px;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .data-table td {
    padding: 5px 0;
    border: 0;
  }

  .data-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .document-card {
    transition: none;
  }
}
