:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #526077;
  --line: #d9e3ea;
  --brand: #007ca3;
  --header: #0f172a;
  --paper: #ffffff;
  --wash: #f4f9fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: #006f94;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 96px;
  padding: 0.75rem max(1.25rem, calc((100vw - 1120px) / 2));
  background: var(--header);
}

.brand img {
  display: block;
  width: auto;
  height: 70px;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-header nav a {
  color: #f8fafc;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

main {
  padding: 3rem 1.25rem 4rem;
}

.legal-document {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.035em;
}

.subtitle {
  max-width: 760px;
  margin: 1rem 0 2.5rem;
  color: var(--muted);
  font-size: 1.125rem;
}

h2 {
  margin: 3rem 0 1rem;
  padding-top: 0.25rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  letter-spacing: -0.015em;
}

h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.lead-heading {
  margin-top: 2rem;
}

p {
  margin: 0 0 1.15rem;
}

ul {
  margin: 0.5rem 0 1.75rem;
  padding-left: 1.5rem;
}

li + li {
  margin-top: 0.65rem;
}

.document-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.document-meta div {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.document-meta div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.document-meta div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.document-meta dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.document-meta dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.important,
.acceptance {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--brand);
  background: #eef8fb;
  font-weight: 600;
}

.acceptance {
  margin-top: 3rem;
}

.small-print {
  color: var(--muted);
  font-size: 0.925rem;
}

.table-scroll {
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.925rem;
  line-height: 1.55;
}

th,
td {
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--header);
  color: #ffffff;
  font-weight: 700;
}

tbody tr:nth-child(even) {
  background: #f7fafc;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

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

  .site-header nav {
    gap: 1rem;
  }

  main {
    padding: 1.25rem 0.75rem 2.5rem;
  }

  .legal-document {
    border-radius: 10px;
  }

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

  .document-meta div,
  .document-meta div:nth-child(odd),
  .document-meta div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .document-meta div:last-child {
    border-bottom: 0;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .site-header,
  footer {
    display: none;
  }

  main {
    padding: 0;
  }

  .legal-document {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  p,
  li,
  table {
    orphans: 3;
    widows: 3;
  }
}
