:root {
  color-scheme: light;
  --deep-navy: #0e2340;
  --medical-blue: #1e5faf;
  --signal-cyan: #64b7ff;
  --warm-ivory: #f5f8fc;
  --joint-amber: #f2b544;
  --ink: #1a2433;
  --muted: #52647a;
  --rule: #c6d8ea;
  --white: #ffffff;
  --footer-navy: #08182c;
  --shadow: 0 24px 70px rgba(14, 35, 64, .15);
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(100, 183, 255, .2), transparent 24rem),
    var(--warm-ivory);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: .75rem;
  z-index: 20;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--white);
  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(14, 35, 64, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: var(--white);
}

.logo {
  color: var(--white);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 680;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--signal-cyan);
}

.back-home {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(100, 183, 255, .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(100, 183, 255, .22), transparent 34rem),
    linear-gradient(145deg, var(--deep-navy), #14365f 62%, #0c1f39);
  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);
  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: "Fraunces", Georgia, serif;
  letter-spacing: -.04em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 650;
  line-height: .96;
}

.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(--white);
  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.7rem, 3vw, 2.45rem);
  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.25rem, 2vw, 1.6rem);
  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-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;
}

.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: "Fraunces", Georgia, 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-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: flex;
  align-items: flex-start;
  gap: .65rem;
  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;
  }

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

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

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