:root {
  --white: #ffffff;
  --black: #000000;
  --blue: #066eaa;
  --blue-dark: #04527f;
  --muted: #555555;
  --line: rgba(0, 0, 0, 0.2);
  --max-width: 880px;
  --gutter: clamp(20px, 4vw, 56px);
  --font-display: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  left: var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--black);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  color: var(--black);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue);
}

.nav-cta,
.nav-cta:hover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: var(--white);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.nav-cta:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.legal-shell {
  width: min(calc(100% - var(--gutter) * 2), var(--max-width));
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) 0 72px;
}

.legal-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--black);
}

.app-icon {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.kicker {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 700px;
  margin: 28px 0 20px;
  font-size: 18px;
  line-height: 1.6;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.meta-row span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.legal-body {
  max-width: 720px;
}

.legal-body h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

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

.legal-body h3 {
  margin: 28px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.legal-body p {
  margin: 0 0 16px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-body li {
  margin-bottom: 7px;
}

.legal-body li::marker {
  color: var(--blue);
}

.legal-body strong {
  font-weight: 700;
}

.legal-body code {
  padding: 1px 5px;
  background: #f2f2f2;
  font-size: 0.9em;
}

.contact-card {
  margin-top: 44px;
  padding: 22px 24px;
  background: var(--blue);
  color: var(--white);
}

.contact-card a {
  color: var(--white);
}

.contact-card p {
  margin: 0;
}

.contact-card p + p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.site-footer {
  width: min(calc(100% - var(--gutter) * 2), 1400px);
  margin-inline: auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--black);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.footer-row a {
  color: var(--blue);
  text-decoration: none;
}

.footer-legal {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
  }

  .nav-cta {
    display: none;
  }

  .legal-hero {
    align-items: flex-start;
  }

  .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .contact-card {
    display: none;
  }

  body {
    font-size: 11pt;
  }

  .legal-shell {
    width: 100%;
    padding: 0;
  }

  .legal-body a {
    color: var(--black);
  }
}
