/* Shared styles for the legal pages: same tokens, header and footer as the home page,
   a navy title band, then a reading column with a sticky table of contents. */
:root {
  --navy: #030F40;
  --navy-2: #0B1B5C;
  --sky: #6FB2F7;
  --lime: #A9DA0A;
  --cyan-ink: #007A9C;
  --indigo: #2A2A8F;
  --ink: #0B1437;
  --muted: #4E5A7A;
  --paper: #FFFFFF;
  --mist: #F1F5FB;
  --line: #D8E0EE;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand img:first-child { height: 40px; width: auto; }
.brand img:last-child { height: 24px; width: auto; }
.brand i { width: 1px; height: 30px; background: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .98rem; }
.nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { border-color: var(--lime); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; font: 600 1rem/1 var(--text); text-decoration: none; border-radius: 2px; background: var(--navy); color: #fff; }
.btn:hover { background: var(--navy-2); }

/* Title band */
.page-head { background: var(--navy); color: #fff; padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--sky); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 24px; height: 12px; flex: none; transform: skewX(-28deg); background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 5px); }
.page-head h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: .98; }
.page-head p { margin: 20px 0 0; max-width: 62ch; font-size: 1.15rem; color: #D5DFF5; }
.page-head .updated { margin-top: 14px; font-size: .92rem; color: #9FB1DA; }

/* Body */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-block: clamp(48px, 7vw, 88px); }
.toc { position: sticky; top: 96px; align-self: start; }
.toc p { margin: 0 0 12px; font-weight: 600; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: .95rem; line-height: 1.35; }
.toc a:hover { color: var(--navy); border-left-color: var(--lime); }

.prose { max-width: 72ch; min-width: 0; }
.prose section + section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--navy); margin-bottom: 16px; }
.prose h3 { font-size: 1.4rem; color: var(--navy); margin: 30px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--lime); }
.prose a { color: var(--indigo); text-decoration-color: var(--lime); text-underline-offset: 3px; }
.prose a:hover { color: var(--navy); }
.prose .intro { font-size: 1.15rem; color: var(--muted); }
.basis { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 18px 0 0; padding: 18px 20px; background: var(--mist); font-size: .98rem; }
.basis dt { font-weight: 600; color: var(--navy); }
.basis dd { margin: 0; }

.facts { display: grid; grid-template-columns: 190px minmax(0, 1fr); margin: 0; border-top: 2px solid var(--navy); }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .95rem; padding-right: 16px; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.tablewrap { overflow-x: auto; margin: 8px 0 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .96rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
thead th { font-weight: 600; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--navy); }
td:first-child { font-weight: 500; }

address { font-style: normal; margin: 12px 0 16px; padding: 16px 20px; border-left: 3px solid var(--lime); background: var(--mist); }

/* Footer */
.foot { background: var(--navy); color: #C9D6F2; padding-block: 44px; font-size: .92rem; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot__logos { display: flex; align-items: center; gap: 26px; }
.foot__logos img:first-child { height: 64px; width: auto; }
.foot__logos img:last-child { height: 30px; width: auto; }
.foot__text { display: grid; gap: 10px; max-width: 60ch; }
.foot__text p { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: #fff; }
.foot__links a[aria-current="page"] { color: var(--lime); text-decoration: none; }

@media (max-width: 980px) {
  .nav a:not(.btn) { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img:first-child { height: 32px; }
  .brand img:last-child { height: 19px; }
  .brand { gap: 12px; }
  .top__in { min-height: 62px; gap: 12px; }
  .nav .btn { padding: 10px 14px; font-size: .9rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 4px; }
  .basis { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .basis dd + dt { margin-top: 10px; }

  /* Summary table: one stacked block per row, each value with its label */
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table, tbody, tr, td { display: block; }
  tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  tbody tr:first-child { border-top: 2px solid var(--navy); }
  td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 3px 0; border: 0; }
  td::before { content: attr(data-label); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
  td:first-child { display: block; font-weight: 600; color: var(--navy); padding-bottom: 6px; }
  td:first-child::before { content: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
