/* ===========================================================================
   VENTURE NEXUS — legal pages (privacy, terms)
   ===========================================================================
   These pages carry no product surfaces, no 3D and no scroll choreography, so
   they do not load the landing stylesheet. What they DO share is the theme:
   the same token names, the same two values, and the same `vn-theme` key in
   localStorage — so switching appearance on the landing page carries over
   here, and back, without a flash.
   =========================================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page:      #ffffff;
  --page-2:    #f5f5f7;
  --ink:       #1d1d1f;
  --ink-muted: #6e6e73;
  --ink-dim:   #86868b;
  --line:      rgba(0,0,0,.09);
  --line-2:    rgba(0,0,0,.06);
  --card:      #ffffff;
  --tint:      #007aff;
  --shadow:    rgba(15,23,42,.30);
  --pad: 24px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --page:      #131316;
  --page-2:    #1c1c1e;
  --ink:       #f5f5f7;
  --ink-muted: #a1a1a6;
  --ink-dim:   #86868b;
  --line:      rgba(255,255,255,.12);
  --line-2:    rgba(255,255,255,.08);
  --card:      #202024;
  --tint:      #0a84ff;
  --shadow:    rgba(0,0,0,.75);
  color-scheme: dark;
}

@media (min-width: 700px) { :root { --pad: 40px; } }

* { box-sizing: border-box; }

html, body { background: var(--page); color: var(--ink); }
html { transition: background 420ms cubic-bezier(.32,.72,0,1); }
body {
  margin: 0;
  font-family: var(--font); font-optical-sizing: auto;
  font-size: 16px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
    transition: border-color 160ms ease, color 160ms ease; }
a:hover { border-bottom-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 3px; }

/* --- top bar -------------------------------------------------------------- */
.lg-bar { border-bottom: 1px solid var(--line); background: var(--page); }
.lg-bar-in { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 18px; }
.lg-back { display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--ink); border-bottom: 0; }
.lg-back img { width: 17px; height: 15.6px; }
html:not([data-theme="dark"]) .lg-back img { filter: invert(1); }
.lg-back:hover { border-bottom: 0; color: var(--ink-muted); }

.theme-seg { margin-left: auto; display: inline-flex; padding: 2px;
  border: 1px solid var(--line); border-radius: 999px; }
.theme-seg button { appearance: none; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--ink-muted);
  padding: 4px 13px; border-radius: 999px; transition: background 200ms ease, color 200ms ease; }
.theme-seg button[aria-pressed="true"] { background: var(--page-2); color: var(--ink); }

/* --- document ------------------------------------------------------------- */
.lg-doc { padding: 56px 0 88px; }
.lg-doc h1 { margin: 0; font-size: clamp(34px, 5vw, 48px); line-height: 1.04;
  font-weight: 600; letter-spacing: -.032em; }
.lg-meta { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-dim); }
.lg-lede { margin: 26px 0 0; font-size: 18px; color: var(--ink-muted); }

.lg-doc h2 { margin: 52px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -.018em;
  line-height: 1.25; scroll-margin-top: 24px; }
.lg-doc h3 { margin: 30px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.lg-doc p { margin: 14px 0 0; }
.lg-doc ul { margin: 14px 0 0; padding-left: 20px; }
.lg-doc li { margin: 7px 0 0; }
.lg-doc li::marker { color: var(--ink-dim); }
.lg-doc strong { font-weight: 600; }
.lg-doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em; background: var(--page-2); border: 1px solid var(--line-2);
  border-radius: 5px; padding: 1px 5px; }

/* The one block that has to be read as a whole rather than skimmed. */
.lg-note { margin: 22px 0 0; padding: 18px 20px; background: var(--page-2);
  border: 1px solid var(--line-2); border-radius: 14px; font-size: 15px;
  color: var(--ink-muted); }
.lg-note strong { color: var(--ink); }

/* Contents. Short enough that it stays a list, not a sidebar. */
.lg-toc { margin: 40px 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line); }
.lg-toc li { margin: 0; border-bottom: 1px solid var(--line); }
.lg-toc a { display: flex; gap: 14px; padding: 11px 2px; font-size: 14.5px;
  color: var(--ink-muted); border-bottom: 0; }
.lg-toc a:hover { color: var(--ink); border-bottom: 0; }
.lg-toc .n { color: var(--ink-dim); font-variant-numeric: tabular-nums; }

/* Uppercase legal blocks stay uppercase but never shout in the reading size. */
.lg-caps { text-transform: uppercase; font-size: 13.5px; letter-spacing: .01em;
  color: var(--ink-muted); }

/* --- footer --------------------------------------------------------------- */
footer { padding: 30px 0 34px; background: var(--page); border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-size: 13.5px;
  font-weight: 500; color: var(--ink); }
.foot-brand img { width: 17px; height: 15.6px; }
html:not([data-theme="dark"]) .foot-brand img { filter: invert(1); }
.foot-nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px; font-size: 13px; }
.foot-nav .sep { color: var(--line); }
.foot-c { margin-top: 14px; font-size: 12px; color: var(--ink-dim); }
footer a { color: var(--ink-muted); border-bottom: 0; }
footer a:hover { color: var(--ink); border-bottom: 0; }
@media (max-width: 620px) { .foot-nav { margin-left: 0; } }
