@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./app/fonts/geist/Geist.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./app/fonts/geist/GeistMono.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("./app/fonts/open-sans/OpenSans-Variable.ttf") format("truetype");
}

:root {
  --ink: #102936;
  --copy: #496169;
  --muted: #5f7479;
  --teal: #247680;
  --teal-soft: #eef9fb;
  --rose: #b60047;
  --line: #d5e5e6;
  --paper: #ffffff;
  --page: #f7fbfa;
}

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

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Open Sans", "Segoe UI", sans-serif;
  background: var(--page);
  text-rendering: optimizeLegibility;
}

a {
  color: var(--teal);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--rose);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.shell {
  width: min(820px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-family: "Geist", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand span {
  margin-top: 0.08rem;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 0.67rem;
}

.top-nav {
  display: flex;
  align-items: center;
}

.btn,
.link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.btn:hover,
.link-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-small {
  min-height: 38px;
  font-size: 0.78rem;
}

.legal-main {
  display: grid;
  padding: 3.2rem 0 1rem;
}

.legal-hero {
  padding-bottom: 2.7rem;
  border-bottom: 2px solid var(--ink);
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0.7rem 0 0;
  font-family: "Geist", "Segoe UI", sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.7rem);
  font-weight: 770;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.legal-hero > p:not(.eyebrow) {
  max-width: 68ch;
  margin: 1.2rem 0 0;
  color: var(--copy);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.legal-card {
  padding: 2rem 0 2.15rem;
  border-bottom: 1px solid var(--line);
}

.legal-card h2 {
  max-width: 34ch;
  margin: 0;
  color: var(--ink);
  font-family: "Geist", "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.legal-card p,
.legal-card li {
  color: var(--copy);
  font-size: 0.94rem;
  line-height: 1.72;
}

.legal-card p {
  max-width: 72ch;
  margin: 0.9rem 0 0;
}

.legal-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.95rem 0 0;
  padding-left: 1.3rem;
}

.chip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0 !important;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.chip-grid li {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.84rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem 0 2.5rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--ink);
  font-weight: 650;
}

@media (max-width: 620px) {
  .shell {
    width: calc(100% - 1.5rem);
  }

  .site-header {
    padding-block: 0.85rem;
  }

  .brand span {
    display: none;
  }

  .legal-main {
    padding-top: 2.3rem;
  }

  .legal-hero {
    padding-bottom: 2rem;
  }

  .legal-card {
    padding-block: 1.55rem;
  }

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

  .site-footer {
    display: grid;
    gap: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  .site-header,
  .legal-links,
  .site-footer,
  .skip-link {
    display: none;
  }

  .shell {
    width: 100%;
  }

  .legal-main {
    padding: 0;
  }

  .legal-card {
    break-inside: avoid;
  }
}
