/* Legal pages (/privacy/, /terms/, /dpa/, /subprocessors/), built by landing/scripts/build-legal.mjs.
   Tokens, logo, nav and footer are the same rules as the inline styles of landing/site/index.html
   (keep them in step); only the reading column (.legal) is specific to these pages. */
@font-face {
  font-family: "Newsreader";
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/newsreader-latin-500.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin-400.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-latin-500.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-latin-600.woff2) format("woff2");
}

:root {
  --ink: #14213d;
  --ink-deep: #0d1730;
  --porcelain: #f7f8f6;
  --white: #ffffff;
  --rail: #eef1f4;
  --line: #dde1e5;
  --text-2: #5c6675;
  --lagoon: #0e8a86;
  --lagoon-ink: #0a6764;
  --lagoon-dark: #3fc7bf;
  --on-ink: #eef2f6;
  --on-ink-2: #a9b5c5;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: min(1180px, 100% - 2 * var(--gutter));
  --gutter: clamp(20px, 4vw, 48px);
  --z-nav: 10;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 17px/1.6 var(--sans);
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--lagoon);
  outline-offset: 3px;
  border-radius: 4px;
}
footer :focus-visible {
  outline-color: var(--lagoon-dark);
}
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.logo svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}
.wordmark .ai {
  color: var(--lagoon);
}
.on-dark .wordmark .ai {
  color: var(--lagoon-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.btn-primary {
  background: var(--lagoon);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--lagoon-ink);
}

/* ---------- Nav: the landing's solid state, fixed on these pages ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(247, 248, 246, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
}
.nav-in {
  width: var(--wrap);
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav .logo {
  font-size: 26px;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
}
.nav-links a {
  text-decoration: none;
  opacity: 0.86;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav-signin {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 2px;
}
.nav-signin:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-signin {
    margin-left: auto;
  }
  .nav-in {
    gap: 18px;
  }
}

/* ---------- Reading column ---------- */
.legal {
  width: min(72ch, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 64px 0 96px;
}
.legal h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 20px;
}
.legal h2 {
  font-size: 28px;
  margin: 56px 0 16px;
  scroll-margin-top: 88px;
}
/* In-text anchors, like #launch-offer (Terms 3.6) linked from Genesis: clear of the fixed header too. */
.legal a[id] {
  scroll-margin-top: 88px;
}
.legal h3 {
  font-size: 21px;
  margin: 36px 0 12px;
}
.legal p,
.legal ul,
.legal ol {
  margin: 0 0 16px;
  text-wrap: pretty;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li {
  margin-bottom: 8px;
}
.legal h1 + p {
  color: var(--text-2);
  font-size: 15px;
}
.legal a {
  color: var(--lagoon-ink);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal code {
  font:
    400 0.88em/1.4 ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
  background: var(--rail);
  padding: 1px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.legal hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.legal table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 14px;
  line-height: 1.5;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.legal th {
  font-weight: 600;
  background: var(--rail);
}
.legal tr:last-child td {
  border-bottom: 0;
}

/* ---------- Footer ---------- */
footer {
  padding: 32px 0 44px;
  background: var(--ink-deep);
  color: var(--on-ink-2);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
}
footer .logo {
  font-size: 22px;
  color: var(--on-ink);
}
footer .r {
  margin-left: auto;
}
.legal-links {
  display: flex;
  gap: 18px;
}
.legal-links a {
  text-decoration: none;
}
.legal-links a:hover {
  color: var(--on-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
