:root {
  color-scheme: light;
  --deep-navy: #252d65;
  --medical-blue: #0047BA;
  --signal-cyan: #0087fe;
  --warm-ivory: #f2f2f2;
  --joint-amber: #f79428;
  /* Darker amber for 3:1 UI-contrast guarantees (e.g. focus rings); see
     styles.css for the canonical explanation, kept in sync here. */
  --joint-amber-focus: #b96f1e;
  /* Lighter cyan for small always-visible label text on dark navy
     backgrounds (e.g. the legal-hero eyebrow), where brand cyan falls
     short of the 4.5:1 text-contrast minimum. */
  --signal-cyan-text: #40a5fe;
  --ink: #3c3a37;
  --muted: #696969;
  --rule: #cdcdcd;
  --white: #ffffff;
  --footer-navy: #202020;
  --shadow: 0 24px 70px rgba(37, 45, 101, .15);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading-weight: 450;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(0, 135, 254, .2), transparent 24rem),
    var(--warm-ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::focus-visible {
  outline: 3px solid var(--joint-amber-focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: .75rem;
  z-index: 20;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--warm-ivory);
  color: var(--deep-navy);
  padding: .75rem 1rem;
  font-weight: 700;
}

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

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(37, 45, 101, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: var(--white);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.logo img {
  display: block;
  width: auto;
  height: 2.35rem;
  max-width: min(52vw, 15.75rem);
}

.site-footer .logo img {
  height: 2.65rem;
  max-width: min(100%, 17.5rem);
}

.back-home {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(0, 135, 254, .12);
  padding: .75rem 1rem;
  color: rgba(255, 255, 255, .86);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.back-home:hover {
  background: var(--medical-blue);
  color: var(--white);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(0, 135, 254, .22), transparent 34rem),
    linear-gradient(145deg, var(--deep-navy), #1e2654 62%, #181f47);
  padding: clamp(3rem, 7vw, 5.75rem) clamp(1.25rem, 4vw, 3.5rem);
  color: var(--white);
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% 9% -8%;
  height: 9rem;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 94 C150 20 280 20 430 94 S760 168 1200 32' fill='none' stroke='%2364B7FF' stroke-width='3' stroke-linecap='round' opacity='.18'/%3E%3C/svg%3E") center / cover no-repeat;
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--signal-cyan-text);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: var(--heading-weight);
  letter-spacing: -.035em;
}

h1 {
  max-width: 22ch;
  margin-bottom: 1rem;
  font-size: clamp(2.65rem, 6.2vw, 4.9rem);
  line-height: .98;
}

.legal-summary {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}

.legal-shell {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.legal-document {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid rgba(198, 216, 234, .82);
  border-radius: 1.6rem;
  background: var(--warm-ivory);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.legal-document h2 {
  margin: 2.3rem 0 .85rem;
  color: var(--deep-navy);
  font-size: clamp(1.5rem, 2.65vw, 2.15rem);
  line-height: 1.05;
}

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

.legal-document h3 {
  margin: 1.7rem 0 .65rem;
  color: var(--medical-blue);
  font-size: clamp(1.1rem, 1.75vw, 1.4rem);
  line-height: 1.18;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  line-height: 1.78;
}

.legal-document p {
  margin-bottom: 1rem;
}

.legal-document ul,
.legal-document ol {
  padding-left: 1.35rem;
}

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

.legal-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
}

.legal-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  border: 1px solid var(--rule);
  border-radius: .75rem;
  overflow: hidden;
  font-size: .92rem;
}

.legal-table caption {
  margin-bottom: .65rem;
  color: var(--deep-navy);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: .75rem .85rem;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: rgba(0, 71, 186, .08);
  color: var(--deep-navy);
  font-weight: 700;
}

.legal-table td {
  color: var(--muted);
}

.legal-document a {
  color: var(--medical-blue);
  font-weight: 700;
}

.legal-note {
  border-left: 4px solid var(--signal-cyan);
  background: var(--warm-ivory);
  padding: 1rem 1.1rem;
}

.legal-rule {
  margin: 2rem 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.legal-state-bubble-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.legal-document a.legal-state-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  text-align: center;
  border: 0;
  border-radius: 999px;
  padding: .95rem 1.35rem;
  background: linear-gradient(135deg, var(--medical-blue), #0087fe);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(0, 71, 186, .22);
  font-size: .95rem;
  font-weight: 620;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.legal-document a.legal-state-bubble:hover {
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(0, 71, 186, .28);
}

.stats-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.stats-list li {
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--warm-ivory);
  padding: 1rem;
}

.stats-list strong {
  display: block;
  color: var(--medical-blue);
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
}

.site-footer {
  background: var(--footer-navy);
  color: rgba(255, 255, 255, .72);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(220px, .65fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2.4rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.footer-contact {
  display: grid;
  gap: .9rem;
}

.footer-social {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  width: max-content;
  max-width: 100%;
  margin: .05rem 0;
}

.footer-social a {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: rgba(0, 135, 254, .58);
  background: rgba(0, 135, 254, .14);
  color: var(--signal-cyan);
  transform: translateY(-2px);
}

.footer-social-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.footer-contact p,
.footer-disclaimer p {
  margin: 0;
}

.footer-contact-list {
  display: grid;
  gap: .75rem;
  margin: .4rem 0 0;
}

.footer-contact-list a,
.footer-contact-list > span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: .65rem;
  align-items: start;
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
  text-decoration: none;
}

.footer-contact-list a:hover,
.footer-links a:hover {
  color: var(--signal-cyan);
}

.footer-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: .15rem;
  color: var(--signal-cyan);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: .75rem;
}

.footer-links a {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: .55rem .75rem;
  color: rgba(255, 255, 255, .82);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-disclaimer {
  display: grid;
  gap: .45rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.2rem clamp(1.25rem, 4vw, 3.5rem);
  text-align: center;
}

.footer-disclaimer p {
  color: rgba(255, 255, 255, .62);
  font-size: .82rem;
  line-height: 1.55;
}

.footer-disclaimer a {
  color: rgba(255, 255, 255, .78);
  text-decoration: underline;
  text-underline-offset: .15em;
}

.footer-disclaimer a:hover {
  color: var(--signal-cyan);
}

@media (max-width: 720px) {
  .legal-header {
    min-height: 66px;
  }

  .logo img {
    height: 2.05rem;
    max-width: min(58vw, 12rem);
  }

  .back-home {
    padding: .65rem .8rem;
    font-size: .82rem;
  }

  .footer-main,
  .stats-list,
  .legal-state-bubble-wrap {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
  }
}
