/* Stintry legal pages — self-contained light theme (app + marketing) */

:root {
  --lp-bg: #eef2f7;
  --lp-bg-soft: #f8fafc;
  --lp-border: rgba(15, 23, 42, 0.08);
  --lp-text: #0f172a;
  --lp-text-muted: #475569;
  --lp-text-dim: #64748b;
  --lp-primary: #112233;
  --lp-accent: #0284c7;
  --lp-accent-soft: rgba(2, 132, 199, 0.1);
  --lp-font: 'IBM Plex Sans', system-ui, sans-serif;
  --lp-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.legal-page {
  font-family: var(--lp-font);
  color: var(--lp-text);
  background: var(--lp-bg);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 72px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lp-border);
}

.legal-navbar { /* alias */ }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.site-logo--lockup { gap: 10px; }

.site-logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.site-logo-type {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.site-logo-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(120deg, #1e3a8a 0%, #0284c7 55%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-logo--corporate { gap: 0; }

.site-logo--nav.site-logo--corporate {
  background: transparent;
  border-radius: 0;
  padding: 0;
  line-height: 0;
  box-shadow: none;
}

.site-logo-img--nexvintrix {
  height: 72px;
  width: auto;
  max-width: min(340px, 58vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}

.site-logo-name--corp {
  font-size: 21px;
  background: linear-gradient(120deg, #112233 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-logo-byline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-text-dim);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-text-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--lp-primary); }

.theme-page-orb { display: none !important; }

.theme-page-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.theme-section-badge {
  display: inline-block;
  font-family: var(--lp-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-accent);
  margin-bottom: 10px;
}

.theme-section-header h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--lp-primary);
  letter-spacing: -0.02em;
}

.theme-section-header p {
  color: var(--lp-text-muted);
  margin: 0 0 1.5rem;
  max-width: 42rem;
  line-height: 1.65;
}

.theme-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--lp-border);
}

.theme-legal-nav a {
  color: var(--lp-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.theme-legal-nav a.is-active,
.theme-legal-nav a:hover {
  color: var(--lp-accent);
}

.theme-prose-card {
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.theme-back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--lp-accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.theme-back-link:hover { text-decoration: underline; }

.theme-callout {
  background: var(--lp-accent-soft);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.25rem;
  color: var(--lp-text-muted);
  font-size: 14px;
}

.theme-prose h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lp-primary);
}

.theme-prose h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--lp-primary);
}

.theme-prose p,
.theme-prose li {
  color: var(--lp-text-muted);
  line-height: 1.7;
}

.theme-prose ul { padding-left: 1.25rem; }

.theme-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.88rem;
}

.theme-prose th,
.theme-prose td {
  border: 1px solid var(--lp-border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.theme-prose th {
  background: var(--lp-bg-soft);
  color: var(--lp-primary);
}

.theme-prose a { color: var(--lp-accent); }

.theme-page-footer {
  margin-top: 2rem;
  color: var(--lp-text-dim);
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}

.theme-eula-md {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
  overflow-x: auto;
  color: var(--lp-text-muted);
}

.theme-eula-loading,
.theme-eula-error { color: var(--lp-text-dim); }

@media (max-width: 640px) {
  body.legal-page { padding-top: 64px; }
  .theme-page-shell { padding: 1.5rem 1rem 2.5rem; }
  .theme-prose-card { padding: 1.15rem 1rem; }
  .legal-navbar .nav-links { display: none; }
}
