/* Site-wide top navigation — mirrors the kashilabs.ai home page so
 * legal pages feel like part of the site, not a different surface.
 * Sticky on scroll, backdrop-blurred. */
.site-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(7, 9, 26, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.10));
}
.site-nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-nav-brand { display: flex; align-items: center; gap: 10px; }
.site-nav-brand .mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: linear-gradient(135deg, #a78bfa, #67e8f9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.35);
}
.site-nav-brand a {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
  text-decoration: none;
}
.site-nav-links {
  display: flex; align-items: center; gap: 14px;
  font-size: 13.5px;
}
.site-nav-links a {
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
}
.site-nav-links a:hover { color: rgba(255, 255, 255, 0.96); }
.site-nav-cta {
  background: linear-gradient(135deg, #a78bfa, #67e8f9);
  color: #07091a !important;
  padding: 7px 14px; border-radius: 999px;
  font-weight: 600;
  transition: transform .12s ease;
}
.site-nav-cta:hover { transform: translateY(-1px); }

/* Back button — sits inside the page shell above the H1. Uses a
 * subtle border so it reads as secondary chrome, not a primary CTA.
 * The onclick smart-back script ships inline with each page. */
.back-button {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 18px;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.back-button:hover {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Shared styles for /legal/* pages on kashilabs.ai.
 *
 * Same dark theme as the home page so the legal hub doesn't feel
 * like it belongs to a different company. Optimised for reading
 * (max-width: 720px, generous line-height) rather than the visual
 * density of the marketing surface.
 */
:root {
  --bg-0: #07091a;
  --bg-1: #0b1020;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.96);
  --text-dim: rgba(255, 255, 255, 0.66);
  --text-mute: rgba(255, 255, 255, 0.42);
  --accent-violet: #a78bfa;
  --accent-cyan: #67e8f9;
  --warn: #fbbf24;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-0); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell { max-width: 720px; margin: 0 auto; padding: 28px 24px 96px; }
.brand { display: flex; align-items: center; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.35);
}
.brand a.brand-link { color: var(--text); font-weight: 600; }
.crumb { color: var(--text-mute); margin-left: 10px; font-size: 13px; }

main { margin-top: 28px; }

h1 { font-size: 28px; line-height: 1.25; margin: 0 0 8px; font-weight: 600; }
h2 { font-size: 19px; margin: 36px 0 12px; font-weight: 600; }
h3 { font-size: 16px; margin: 24px 0 8px; font-weight: 600; color: var(--text-dim); }

p, ul, ol { margin: 0 0 14px; color: var(--text-dim); }
ul, ol { padding-left: 20px; }
li { margin: 4px 0; }
strong { color: var(--text); font-weight: 600; }
em { color: var(--text); font-style: italic; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px; background: var(--surface); padding: 1px 5px; border-radius: 4px;
  color: var(--text);
}

/* Last-updated / effective-date pill */
.meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-mute);
  padding: 4px 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
  margin-bottom: 18px;
}

/* DRAFT / NEEDS-LAWYER-REVIEW banner. Conspicuous on purpose. */
.draft-banner {
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
  color: var(--warn);
  padding: 12px 14px; border-radius: 8px; margin: 16px 0 24px;
  font-size: 13.5px; line-height: 1.55;
}
.draft-banner strong { color: var(--warn); }

/* Table-of-contents card */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px;
  margin: 22px 0 32px;
  font-size: 14px;
}
.toc-title { color: var(--text-mute); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; margin-bottom: 8px; }
.toc ol { padding-left: 18px; margin: 0; }
.toc li { margin: 3px 0; }
.toc a { color: var(--text-dim); }
.toc a:hover { color: var(--text); }

/* In-prose data table for subprocessor list */
table {
  width: 100%; border-collapse: collapse; margin: 12px 0 20px;
  font-size: 14px;
}
th, td {
  text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top; color: var(--text-dim);
}
th { color: var(--text); font-weight: 600; background: var(--surface); }

/* Section anchor offset so heading links don't get hidden under a fixed nav */
section { scroll-margin-top: 16px; }

/* Footer */
footer.legal-foot {
  margin-top: 64px; padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-mute);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
footer.legal-foot a { color: var(--text-mute); }
footer.legal-foot a:hover { color: var(--text-dim); }

/* Responsive niceties */
@media (max-width: 480px) {
  .shell { padding: 20px 18px 64px; }
  h1 { font-size: 24px; }
  h2 { font-size: 17px; }
}
