/* Self-hosted, same files the rest of the site uses. These pages joined the
   public site when the application moved to its own hostname, so they follow its
   rules: no third-party connection on a page a visitor can reach. */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Standalone styling for the legal pages. They live outside the React app on
   purpose: they must load with no JavaScript, no session and no bundle, since
   Google's OAuth review and Clerk's sign-up links both fetch them cold.
   Brand tokens mirror apps/web/src/screens/auth/brand.ts — keep them in step. */

:root {
  --ink: #07192b;
  --lime: #68a92e;
  --lime-deep: #4e7f22;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e5e7eb;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #07192b;
    --surface-subtle: #0b2136;
    --text: #f2f6fa;
    --text-secondary: #b7c4d0;
    --text-muted: #7b8a99;
    --border: rgba(148, 163, 184, 0.18);
    --lime-deep: #8fd14f;
  }
}

* {
  box-sizing: border-box;
}

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

/* ─── Header ─────────────────────────────────────────────────────────── */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}
.brand img {
  width: 26px;
  height: 26px;
  display: block;
}
.brand span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ─── Document ───────────────────────────────────────────────────────── */

.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

/* The lime rule is the same brand device the auth screens and emails use. */
.doc::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--lime);
}

.doc-inner {
  padding: 36px clamp(20px, 5vw, 44px) 44px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime-deep);
  margin: 0 0 8px;
}

h1 {
  font-size: clamp(26px, 4.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-wrap: balance;
}

.updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 28px;
}

/* ─── Plain-language summary ─────────────────────────────────────────── */
/* Not decoration: the gist of the document, so nobody has to read clauses
   to learn what actually happens. */

.summary {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 36px;
}
.summary h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.summary li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text);
}
.summary li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

/* ─── Sections ───────────────────────────────────────────────────────── */
/* Numbered because legal clauses are referenced by number — the ordering
   carries meaning here, unlike decorative counters. */

section {
  margin-top: 32px;
}
h2 {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  text-wrap: balance;
}
h2 .num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--lime-deep);
  margin-right: 8px;
}
h3 {
  font-size: 15px;
  margin: 20px 0 6px;
}
p,
li {
  color: var(--text-secondary);
}
p {
  margin: 0 0 12px;
}
ul.body {
  margin: 0 0 12px;
  padding-left: 20px;
}
ul.body li {
  margin-bottom: 6px;
}
strong {
  color: var(--text);
  font-weight: 600;
}
a {
  color: var(--lime-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 3px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  padding: 8px 12px 8px 0;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-secondary);
}
td:first-child {
  color: var(--text);
  font-weight: 550;
}

footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
footer a {
  color: var(--lime-deep);
}
