:root {
  --azure-deep: #1A5FBB;
  --azure-mid: #2E8BC0;
  --azure-pale: #D6EEF8;
  --azure-foam: #EEF7FC;
  --white: #FFFFFF;
  --ink: #0F1D2E;
  --ink-muted: #4A5D70;
  --gold: #C9A84C;
  --border: #C8DDE8;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(26, 95, 187, .10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(238, 247, 252, .94), rgba(255, 255, 255, 1) 360px),
    var(--white);
  line-height: 1.65;
}

a {
  color: var(--azure-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--azure-mid);
}

.container {
  width: min(1320px, calc(100vw - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(200, 221, 232, .82);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  color: var(--ink);
  text-decoration: none;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand span {
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-actions a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.back-link {
  color: var(--ink-muted);
}

.phone-link {
  color: var(--ink);
}

.hero {
  padding: 58px 0 34px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--azure-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 18px;
}

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

.document {
  background: var(--white);
  border: 1px solid rgba(200, 221, 232, .9);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 46px);
}

.document h2 {
  margin: 32px 0 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(200, 221, 232, .7);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.document h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.document p,
.document li {
  font-size: 16px;
}

.document p {
  margin: 0 0 14px;
}

.document ul,
.document ol {
  margin: 0 0 18px 22px;
  padding: 0;
}

.document li {
  margin: 8px 0;
  padding-left: 4px;
}

.document table {
  width: 100%;
  margin: 18px 0 22px;
  border-collapse: collapse;
  table-layout: auto;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 14px;
}

.document th,
.document td {
  padding: 12px 14px;
  border: 1px solid rgba(200, 221, 232, .95);
  vertical-align: top;
  text-align: left;
  hyphens: auto;
}

.document th {
  background: var(--azure-foam);
  color: var(--ink);
  font-weight: 800;
}

.document td {
  color: var(--ink-muted);
}

.document table:first-of-type,
.document table:last-of-type {
  max-width: 760px;
}

.document table:first-of-type th:first-child,
.document table:last-of-type th:first-child,
.document table:first-of-type td:first-child,
.document table:last-of-type td:first-child {
  width: 180px;
  white-space: nowrap;
}

.document table:not(:first-of-type):not(:last-of-type) th,
.document table:not(:first-of-type):not(:last-of-type) td {
  min-width: 180px;
}

.document table:not(:first-of-type):not(:last-of-type) th:nth-child(1),
.document table:not(:first-of-type):not(:last-of-type) td:nth-child(1) {
  width: 22%;
}

.document table:not(:first-of-type):not(:last-of-type) th:nth-child(2),
.document table:not(:first-of-type):not(:last-of-type) td:nth-child(2) {
  width: 34%;
}

.document table:not(:first-of-type):not(:last-of-type) th:nth-child(3),
.document table:not(:first-of-type):not(:last-of-type) td:nth-child(3) {
  width: 22%;
}

.document table:not(:first-of-type):not(:last-of-type) th:nth-child(4),
.document table:not(:first-of-type):not(:last-of-type) td:nth-child(4) {
  width: 22%;
}

.document {
  overflow-x: auto;
}

.side-nav {
  position: sticky;
  top: 92px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(200, 221, 232, .9);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 18px;
}

.side-nav strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
}

.side-nav a {
  display: block;
  padding: 9px 0;
  color: var(--ink-muted);
  border-top: 1px solid rgba(200, 221, 232, .55);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.side-nav a:hover {
  color: var(--azure-deep);
}

.site-footer {
  background: #0A1829;
  color: rgba(255, 255, 255, .55);
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
}

.footer-text {
  max-width: 780px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .52);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, .68);
  border-bottom: 1px solid rgba(255, 255, 255, .24);
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, .64);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    order: -1;
  }

  .document table {
    min-width: 720px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100vw - 28px, 1320px);
  }

  .topbar-inner,
  .topbar-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
  }

  .hero {
    padding-top: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .document {
    padding: 20px 16px;
  }

  .document h2 {
    font-size: 20px;
  }

  .document p,
  .document li {
    font-size: 15px;
  }

  .document th,
  .document td {
    padding: 10px;
    font-size: 13px;
  }
}
