/* Shared styles for legal pages (privacy, terms, trust)
   Inherits the landing-page design tokens, fonts, nav, and footer treatment. */

:root {
  --cyan: #02BFFB;
  --blue: #006CE0;
  --mint-bg: #E3F3EC;
  --mint: #7BCD89;
  --anchor: #0B1C21;
  --yellow: #FADA2B;
  --page: #E3F3EC;
  --surface: #FFFFFF;
  --text: #0B1C21;
  --text-2: #4A5D64;
  --text-3: #7A8F96;
  --border: #D1E4DA;
  --border-strong: #B4CDC1;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-padding-top: 96px; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--page);
  color: var(--text);
  font-feature-settings: "cv11","ss01","ss03";
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  padding-top: 16px;
  overflow-x: hidden;
}
::selection { background: var(--cyan); color: white; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Skip link */
.skip {
  position: absolute; left: -9999px;
  background: var(--anchor); color: white;
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; text-decoration: none;
}
.skip:focus { left: 16px; top: 16px; z-index: 100; }

/* ============ NAV (mirrors index.html floating pill) ============ */
nav.top {
  position: sticky; top: 16px; z-index: 50;
  padding: 0 16px;
  pointer-events: none;
}
nav.top .nav-row {
  pointer-events: auto;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  height: 56px;
  padding: 0 22px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(11,28,33,0.06);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 10px 30px -12px rgba(11,28,33,0.16),
    0 2px 6px rgba(11,28,33,0.04);
}
.logo {
  display: flex; align-items: center; gap: 2px;
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--text);
  text-decoration: none;
}
.logo-mark-img {
  width: 70px; height: 70px;
  display: block;
  object-fit: contain;
  margin: 0 -10px;
}
.nav-links {
  display: flex; gap: 6px; align-items: center;
  font-size: 14px; color: var(--text-2); font-weight: 500;
}
.nav-links a {
  color: var(--text-2); text-decoration: none;
  padding: 8px 12px; border-radius: 999px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(11,28,33,0.04); }
.nav-cta { display: flex; gap: 8px; align-items: center; flex: none; }
.nav-startbtn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  background: var(--blue); color: white;
  font-weight: 600; font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,0.20) inset, 0 4px 12px -6px rgba(0,108,224,0.55);
  transition: background .15s ease, transform .08s ease;
}
.nav-startbtn:hover { background: #005ec4; }
.nav-startbtn:active { transform: translateY(1px); }

/* ============ LEGAL ARTICLE ============ */
main { padding: 56px 0 24px; }
article.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
}
article.legal .eyebrow {
  display: inline-flex;
  height: 26px;
  padding: 0 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
article.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 16px 0 12px;
  line-height: 1.05;
  text-wrap: balance;
}
article.legal .meta {
  color: var(--text-3);
  font-size: 14px;
  margin: 0 0 24px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0;
}
article.legal .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 44px;
  max-width: 64ch;
}
article.legal h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  color: var(--text);
}
article.legal h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 22px 0 6px;
  color: var(--text);
}
article.legal p { margin: 0 0 14px; }
article.legal ul { padding-left: 22px; margin: 0 0 14px; }
article.legal li { margin-bottom: 8px; }
article.legal a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,108,224,0.25);
  transition: border-color .15s ease;
}
article.legal a:hover { border-bottom-color: var(--blue); }
article.legal strong { font-weight: 600; color: var(--text); }

/* Table override (the inline-styled tables in the source pages get replaced by this) */
article.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 20px 0 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
article.legal table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: rgba(11,28,33,0.025);
}
article.legal table td {
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid rgba(11,28,33,0.06);
}
article.legal table tr:last-child td { border-bottom: none; }
article.legal table td:first-child,
article.legal table .perm {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  vertical-align: top;
}

/* ============ FOOTER (mirrors index.html) ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 72px;
}
.foot-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  font-size: 14px; color: var(--text-2);
}
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a {
  color: var(--text-2); text-decoration: none;
  transition: color .15s ease;
}
.foot-links a:hover { color: var(--text); }

@media (max-width: 720px) {
  article.legal { padding: 0 20px; font-size: 15.5px; }
  article.legal h1 { font-size: 36px; }
  article.legal h2 { font-size: 20px; margin: 36px 0 10px; }
  article.legal .lede { font-size: 17px; margin-bottom: 32px; }
  main { padding: 32px 0 24px; }
  nav.top .nav-row { padding: 0 14px; gap: 14px; height: 52px; }
  .nav-links { display: none; }
  .logo-mark-img { width: 56px; height: 56px; margin: 0 -8px; }
  .logo { font-size: 18px; }
}
