

/* PAGE: terms */

/* Visually-hidden utility (WCAG 4.1.2) */
body.page-terms .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

body.page-terms *, body.page-terms *::before, body.page-terms *::after, body.page-terms { margin: 0; padding: 0; box-sizing: border-box; }

:root:has(body.page-terms) {
  --blue-light: #4da6ff;
  --blue-dark: #0a1e3d;
  --bg: #050a14;
  --glass-border: rgba(255,255,255,0.25);
}

html:has(body.page-terms) { scroll-behavior: smooth; overflow-x: hidden; }

body.page-terms {
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
}

/* Nav */
body.page-terms .nav-wrapper {
  position: fixed; top: 24px; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center;
  z-index: 1000; padding: 0 24px; pointer-events: none;
}

body.page-terms .nav { pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.015); backdrop-filter: blur(32px) saturate(1.6); -webkit-backdrop-filter: blur(32px) saturate(1.6); position: relative; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.04); }

body.page-terms .nav::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(18,18,28,0.22); background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"); background-size: 128px 128px; pointer-events: none; z-index: 0; }

body.page-terms .nav a { position: relative; z-index: 1; text-decoration: none; color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500; padding: 8px 20px; border-radius: 999px; transition: color 0.25s, background 0.25s; white-space: nowrap; display: flex; align-items: center; gap: 6px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

body.page-terms .nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }

body.page-terms .nav a.active { color: #fff; background: rgba(255,255,255,0.12); }

body.page-terms .nav-icon { display: none; width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

body.page-terms .nav-label { display: inline; overflow: hidden; max-width: 100px; transition: opacity 0.25s ease; opacity: 1; text-overflow: ellipsis; }

body.page-terms .light-only { display: none !important; }

[data-theme="light"] body.page-terms .dark-only { display: none !important; }

[data-theme="light"] body.page-terms .light-only { display: inline !important; }
@media (max-width: 640px) {
  
  body.page-terms .nav { gap: 3px; padding: 8px 10px; }
  
  body.page-terms .nav a { padding: 9px 12px; font-size: 13px; }
  
  body.page-terms .nav-icon { display: block; }
  
  body.page-terms .nav-label { max-width: 0; opacity: 0; }
  
  body.page-terms .nav a.active .nav-label { max-width: 70px; opacity: 1; font-size: 12px; }
  
  body.page-terms .nav a.active { padding: 9px 14px; }
}

/* Page */
body.page-terms .page-wrap {
  max-width: 700px; margin: 0 auto;
  padding: 140px 32px 80px;
}

/* Empty-state pages: a full-height flex column so the footer sits at the bottom; rebuilds the
   404's primary button, whose .btn styles are scoped to body.page-404. */
body.page-empty { display: flex; flex-direction: column; min-height: 100vh; }
/* Fill the viewport so the footer sits below the fold; width 100% pins the width under auto
   margins, as on the legal pages. */
body.page-empty .page-wrap { min-height: 100vh; width: 100%; }

/* Blue-glass "Back to Home" button that matches the page's accent. */
body.page-empty .btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--blue-light);
  background: rgba(77,166,255,0.10);
  border: 1px solid rgba(77,166,255,0.30);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer; min-height: 44px; /* WCAG 2.5.5 */
}

body.page-empty .btn svg { width: 16px; height: 16px; flex-shrink: 0; }

body.page-empty .btn:hover { background: rgba(77,166,255,0.16); border-color: rgba(77,166,255,0.5); transform: translateY(-1px); }

/* Centre only the empty-state message and button; the eyebrow, title and subtitle
   stay left-aligned. */
body.page-empty .prose-center { text-align: center; }

body.page-terms .page-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--blue-light);
  margin-bottom: 16px;
}

body.page-terms .page-title {
  font-size: clamp(28px, 5vw, 42px); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 8px;
}

body.page-terms .page-meta {
  font-size: 13px; color: rgba(255,255,255,0.5);
  margin-bottom: 56px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Text */
body.page-terms .prose h2 {
  font-size: 18px; font-weight: 700; margin: 40px 0 12px;
  color: rgba(255,255,255,0.9);
}

body.page-terms .prose p {
  font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

body.page-terms .prose ul {
  margin: 0 0 16px 20px; padding: 0;
}

body.page-terms .prose ul li {
  font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

body.page-terms .prose a {
  color: var(--blue-light); text-decoration: underline; transition: color 0.2s;
}

body.page-terms .prose .lucid-policy-toc a { text-decoration: none; }

body.page-terms .prose a:hover { color: #fff; }

body.page-terms .prose strong { color: rgba(255,255,255,0.75); font-weight: 600; }

/* Theme */
body.page-terms .theme-toggle { position: relative; z-index: 1; width: 34px; height: 34px; border: none; background: transparent; cursor: pointer; border-radius: 50%; margin-left: 2px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65); transition: color 0.25s, background 0.25s; text-decoration: none; padding: 0; font-size: 0; min-width: 34px; flex-shrink: 0; }

body.page-terms .theme-toggle:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Mobile header bubble (the client portal sign-in link) */
body.page-terms .theme-toggle-mobile {
  display: none; pointer-events: auto;
  width: 48px; height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(18,18,28,0.22);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  cursor: pointer; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: color 0.25s, border-color 0.25s;
  padding: 0; font-size: 0; margin-left: 8px; flex-shrink: 0;
}

body.page-terms .theme-toggle-mobile:hover { border-color: rgba(255,255,255,0.2); }

:root:has(body.page-terms) { --nav-scale: 1; }

body.page-terms .nav-fit { display: flex; align-items: center; gap: 8px; width: max-content; max-width: none; transform: scale(var(--nav-scale)); transform-origin: center top; pointer-events: auto; }

body.page-terms .nav-fit.nav-fit-transitions { transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1); }

/* Mobile nav-link click animation. .nav-collapsed: the active label is at width 0.
   .nav-anim: transitions on, only while collapsing and expanding, so refresh and
   resize snap instead of revealing letter by letter. */
@media (max-width: 640px) {
  html.nav-collapsed:has(body.page-terms) .nav a.active .nav-label {
    max-width: 0;
    opacity: 0;
  }
  html.nav-anim:has(body.page-terms) .nav a.active .nav-label {
    transition: max-width 220ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 180ms ease;
  }
  /* Drop the active highlight while collapsed so every link reads as a plain icon;
     .nav a's colour and background transition fades it. */
  html.nav-collapsed:has(body.page-terms) .nav a.active {
    background: transparent;
    color: rgba(255,255,255,0.65);
    /* Symmetric padding + zero gap so the active pill collapses to a true
       circle (16px icon + 9px padding × 2 = 34×34) instead of an oval. */
    padding: 9px;
    gap: 0;
  }
  html[data-theme="light"].nav-collapsed:has(body.page-terms) .nav a.active {
    color: rgba(0,0,0,0.6);
  }
}

body.page-terms .nav { gap: 6px; padding: 8px 10px; }

body.page-terms .nav a { font-size: 14px; padding: 8px 20px; gap: 6px; }

body.page-terms .nav-icon { width: 16px; height: 16px; }

body.page-terms .nav-label { max-width: 100px; }

body.page-terms .theme-toggle { width: 34px; height: 34px; min-width: 34px; margin-left: 2px; }

body.page-terms .theme-toggle-mobile { width: 48px; height: 48px; margin-left: 0; }
@media (max-width: 640px) {
  
  body.page-terms .nav-fit { gap: 8px; }
  
  body.page-terms .nav { gap: 3px; padding: 8px 10px; }
  
  body.page-terms .nav a { padding: 9px 12px; font-size: 13px; }
  
  body.page-terms .nav a:not(.active) .nav-label { max-width: 0; opacity: 0; }
  
  body.page-terms .nav a.active .nav-label { max-width: 70px; font-size: 12px; }
  
  body.page-terms .nav a.active { padding: 9px 14px; }
}

[data-theme="light"] body.page-terms .theme-toggle-mobile { border-color: rgba(0,0,0,0.08); color: rgba(0,0,0,0.6); background: rgba(255,255,255,0.3); backdrop-filter: blur(32px) saturate(2.0); -webkit-backdrop-filter: blur(32px) saturate(2.0); box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.7); }

[data-theme="light"] body.page-terms .theme-toggle-mobile:hover { border-color: rgba(0,0,0,0.2); }
@media (max-width: 640px) {
  
  body.page-terms .nav .theme-toggle { display: none; }
  
  body.page-terms .theme-toggle-mobile { display: flex; }
}

[data-theme="light"]:has(body.page-terms) { --bg: #eef1f6; --blue-light: #1a66b5; --glass-border: rgba(0,0,0,0.13); }

[data-theme="light"] body.page-terms { background: var(--bg); color: #1a1a2e; }

[data-theme="light"] body.page-terms .theme-toggle { color: rgba(0,0,0,0.6); }

[data-theme="light"] body.page-terms .theme-toggle:hover { color: #1a1a2e; background: rgba(0,0,0,0.05); }

[data-theme="light"] body.page-terms .nav { background: rgba(255,255,255,0.3); border-color: rgba(0,0,0,0.08); backdrop-filter: blur(32px) saturate(2.0); -webkit-backdrop-filter: blur(32px) saturate(2.0); box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.7); }

[data-theme="light"] body.page-terms .nav a { color: rgba(0,0,0,0.6); text-shadow: 0 1px 2px rgba(255,255,255,0.5); }

[data-theme="light"] body.page-terms .nav a:hover { color: #1a1a2e; background: rgba(0,0,0,0.05); }

[data-theme="light"] body.page-terms .nav a.active { color: #1a1a2e; background: rgba(0,0,0,0.11); }

[data-theme="light"] body.page-terms .nav::before { background: rgba(255,255,255,0.3); }

/* Adaptive nav text */
body.page-terms .nav.nav-dark-adaptive a { color: rgba(0,0,0,0.7); text-shadow: 0 1px 2px rgba(255,255,255,0.3); }

body.page-terms .nav.nav-dark-adaptive a:hover { color: rgba(0,0,0,0.9); }

body.page-terms .nav.nav-dark-adaptive a.active { color: rgba(0,0,0,0.9); }

body.page-terms .nav.nav-dark-adaptive .theme-toggle { color: rgba(0,0,0,0.6); }

[data-theme="light"] body.page-terms .nav.nav-light-adaptive a { color: rgba(255,255,255,0.85); text-shadow: 0 1px 3px rgba(0,0,0,0.4); }

[data-theme="light"] body.page-terms .nav.nav-light-adaptive a:hover { color: #fff; }

[data-theme="light"] body.page-terms .nav.nav-light-adaptive a.active { color: #fff; }

[data-theme="light"] body.page-terms .nav.nav-light-adaptive .theme-toggle { color: rgba(255,255,255,0.8); }

[data-theme="light"] body.page-terms .page-label { color: #2b7fd4; }

[data-theme="light"] body.page-terms .page-title { color: #1a1a2e; }

[data-theme="light"] body.page-terms .page-meta { color: rgba(26,26,46,0.8); border-bottom-color: rgba(0,0,0,0.11); }

[data-theme="light"] body.page-terms .prose h2 { color: rgba(26,26,46,0.95); }

[data-theme="light"] body.page-terms .prose p { color: rgba(26,26,46,0.85); }

[data-theme="light"] body.page-terms .prose ul li { color: rgba(26,26,46,0.85); }

[data-theme="light"] body.page-terms .prose a { color: #1a66b5; }

[data-theme="light"] body.page-terms .prose a:hover { color: #1a1a2e; }

[data-theme="light"] body.page-terms .prose strong { color: rgba(26,26,46,0.85); }

/* Skeleton */

/* No skeleton on the prose pages: the text renders with the HTML, so gating it
   behind .loaded would only show a blank screen while it downloads.
   display:contents keeps the wrapper layout-neutral. */
body.page-terms .real-content { display: contents; }

/* Respect prefers-reduced-motion (WCAG 2.2 AA 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  body.page-terms *, body.page-terms *::before, body.page-terms *::after, body.page-terms {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body.page-terms .skip-link {position:fixed;top:-48px;left:0;background:#2b7fd4;color:#fff;padding:10px 16px;z-index:99999;text-decoration:none;font-weight:600;border-radius:0 0 4px 0;transition:top .2s ease,opacity .2s ease;font-size:14px;opacity:0;pointer-events:none;white-space:nowrap}

body.page-terms .skip-link:focus, body.page-terms .skip-link:focus-visible {top:0;opacity:1;pointer-events:auto;outline:2px solid #fff;outline-offset:-4px}

/* Global :focus-visible - keyboard accessibility (WCAG 2.4.7) */
body.page-terms a:focus-visible, body.page-terms button:focus-visible, body.page-terms [role="button"]:focus-visible, body.page-terms input:focus-visible, body.page-terms select:focus-visible, body.page-terms textarea:focus-visible, body.page-terms .btn:focus-visible, body.page-terms .theme-toggle:focus-visible, body.page-terms .theme-toggle-mobile:focus-visible {
  outline: 2px solid var(--blue-light, #4da6ff);
  outline-offset: 2px;
  border-radius: 4px;
}

body.page-terms .btn:focus-visible { border-radius: 999px; }

/* The policy TOC <ol> and <table>s, in the same hairline style as the prose. */
body.page-terms .prose ol { padding-left: 20px; margin-bottom: 16px; }

body.page-terms .prose ol li { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.7); margin-bottom: 4px; }

body.page-terms .prose .lucid-policy-toc { margin-bottom: 8px; }

body.page-terms .prose .lucid-policy-toc strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.46); margin-bottom: 8px; }

body.page-terms .prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }

body.page-terms .prose th { text-align: left; font-weight: 600; color: rgba(255,255,255,0.85); }

body.page-terms .prose th, body.page-terms .prose td { padding: 10px 12px; border: 1px solid rgba(255,255,255,0.08); font-size: 13.5px; line-height: 1.6; vertical-align: top; }

body.page-terms .prose td { color: rgba(255,255,255,0.7); }
@media (max-width: 640px) {
  
  body.page-terms .prose table { display: block; overflow-x: auto; }
}

[data-theme="light"] body.page-terms .prose ol li { color: rgba(26,26,46,0.85); }

[data-theme="light"] body.page-terms .prose .lucid-policy-toc strong { color: rgba(26,26,46,0.62); }

[data-theme="light"] body.page-terms .prose th { color: #1a1a2e; }

[data-theme="light"] body.page-terms .prose th, [data-theme="light"] body.page-terms .prose td { border-color: rgba(0,0,0,0.12); }

[data-theme="light"] body.page-terms .prose td { color: rgba(26,26,46,0.85); }
