:root {
  color-scheme: light;
  --background: #e6eae7;
  --background-deep: #d7ded9;
  --surface: #faf6ea;
  --surface-muted: #f0ebdd;
  --ink: #18211f;
  --ink-soft: #505b56;
  --primary: #2e5560;
  --primary-deep: #203c43;
  --accent: #5e8f87;
  --focus: #b44535;
  --border: 2px solid var(--ink);
  --radius-small: 10px;
  --radius-card: 18px;
  --shadow: 3px 4px 0 var(--ink);
  --content: 72rem;
  --reading: 44rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family:
    "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.1em;
}

a:hover {
  color: var(--primary-deep);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  border: var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--content));
  min-height: 4.5rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  width: 2.3rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--primary);
}

main {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.legal-hero {
  padding: clamp(4rem, 11vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
}

.legal-hero h1,
.document-header h1 {
  max-width: 13ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.legal-hero p {
  max-width: 39rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.support-header {
  max-width: 48rem;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.support-header h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.support-header > p:last-child {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.support-details {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--primary-deep);
  box-shadow: var(--shadow);
  color: #fff8ea;
}

.support-details h2,
.support-form-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.1;
}

.support-details ul {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
}

.support-details li + li {
  margin-top: 0.85rem;
}

.contact-note {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, #fff8ea 35%, transparent);
}

.contact-note strong,
.contact-note a {
  display: block;
}

.contact-note a {
  margin-top: 0.35rem;
  color: #fff8ea;
  overflow-wrap: anywhere;
}

.support-form-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-intro {
  max-width: 37rem;
  margin: 0.75rem 0 1.75rem;
  color: var(--ink-soft);
}

.support-form,
.field {
  display: grid;
}

.support-form {
  gap: 1.25rem;
}

.field {
  gap: 0.45rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field label {
  font-size: 0.95rem;
  font-weight: 800;
}

.field label span {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-small);
  background: var(--background);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 11rem;
  resize: vertical;
}

.field input::placeholder {
  color: var(--ink-soft);
  opacity: 0.75;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}

.submit-button {
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  border: var(--border);
  border-radius: var(--radius-small);
  background: var(--primary);
  box-shadow: 2px 3px 0 var(--ink);
  color: #fff8ea;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.submit-button:hover {
  background: var(--primary-deep);
  transform: translate(-1px, -1px);
  box-shadow: 3px 4px 0 var(--ink);
}

.submit-button:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.form-status {
  min-height: 1.65rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.platform-section {
  padding-bottom: clamp(4rem, 9vw, 7rem);
  scroll-margin-top: 2rem;
}

.platform-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
}

.platform-heading .eyebrow {
  margin: 0;
}

.platform-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.platform-documents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.document-type {
  display: block;
  margin-bottom: 1.75rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-documents .document-card:nth-child(2) .document-type {
  color: #b9d7d2;
}

.support-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(5rem, 10vw, 8rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.support-banner h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.support-banner p:last-child {
  max-width: 40rem;
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
}

.support-action {
  flex: 0 0 auto;
  padding: 0.8rem 1.2rem;
  border: var(--border);
  border-radius: var(--radius-small);
  background: var(--primary);
  box-shadow: 2px 3px 0 var(--ink);
  color: #fff8ea;
  font-weight: 850;
  text-decoration: none;
}

.support-action:hover {
  background: var(--primary-deep);
  color: #fff8ea;
}

.document-links {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.document-card {
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.document-card:nth-child(2) {
  background: var(--primary-deep);
  color: #fff8ea;
}

.document-card:hover {
  color: inherit;
  transform: translate(-2px, -2px);
  box-shadow: 5px 6px 0 var(--ink);
}

.document-card:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 2px 0 var(--ink);
}

.document-card h2,
.document-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.document-card p {
  max-width: 34rem;
  margin: 0.9rem 0 2rem;
  color: currentColor;
  opacity: 0.78;
}

.card-action {
  margin-top: auto;
  font-weight: 800;
}

.document-header {
  max-width: var(--reading);
  padding: clamp(4rem, 10vw, 7rem) 0 3rem;
}

.document-header h1 {
  max-width: none;
  font-size: clamp(2.7rem, 7vw, 4.8rem);
}

.document-meta {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.document-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, var(--reading));
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
  padding-bottom: 7rem;
}

.toc {
  position: sticky;
  top: 2rem;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--surface-muted) 88%, transparent);
}

.toc strong {
  display: block;
  margin-bottom: 0.65rem;
}

.toc a {
  display: block;
  padding: 0.3rem 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--primary);
}

.legal-document {
  min-width: 0;
}

.legal-document section {
  padding: 0.25rem 0 2.6rem;
  scroll-margin-top: 2rem;
}

.legal-document section + section {
  padding-top: 2.6rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
}

.legal-document h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.15;
}

.legal-document h3 {
  margin: 1.7rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-document p,
.legal-document ul {
  margin: 0.75rem 0;
}

.legal-document li + li {
  margin-top: 0.55rem;
}

.callout {
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: var(--surface-muted);
}

.site-footer {
  border-top: var(--border);
  background: var(--primary-deep);
  color: #fff8ea;
}

.footer-inner {
  width: min(calc(100% - 2rem), var(--content));
  min-height: 7rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #fff8ea;
}

@media (max-width: 48rem) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .document-links,
  .platform-documents,
  .document-layout,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .platform-heading,
  .support-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .document-card {
    min-height: 13rem;
  }

  .toc {
    position: static;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #14201f;
    --background-deep: #1b2a28;
    --surface: #263632;
    --surface-muted: #30413d;
    --ink: #f3f1e8;
    --ink-soft: #c1cac5;
    --primary: #9bc2bd;
    --primary-deep: #203c43;
    --accent: #82aaa3;
    --focus: #f09a87;
    --shadow: 3px 4px 0 #07100f;
    --border: 2px solid #07100f;
  }

  .brand-mark {
    box-shadow: 2px 2px 0 #07100f;
  }

  .document-card:hover {
    box-shadow: 5px 6px 0 #07100f;
  }
}

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

  .document-card,
  .submit-button {
    transition: none;
  }
}

@media print {
  .site-header,
  .toc,
  .site-footer,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  main,
  .document-header,
  .document-layout {
    width: 100%;
    max-width: none;
    display: block;
    padding: 0;
  }

  .legal-document section {
    break-inside: avoid;
  }
}
