/* The Contextian — shared styling for legal / document pages.
   Same navy + indigo-purple identity as the landing page, tuned for reading. */
:root {
  --bg:        #080b14;
  --surface:   #0f1422;
  --border:    rgba(255,255,255,0.08);
  --text:      rgba(255,255,255,0.92);
  --text-dim:  rgba(255,255,255,0.66);
  --text-faint:rgba(255,255,255,0.42);
  --blue:   #6366f1;
  --purple: #8b5cf6;
  --accent: #a5b4fc;
  --grad: linear-gradient(120deg, var(--blue), var(--purple));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(70% 50% at 15% 0%, rgba(99,102,241,0.12) 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(1.25rem, 0.5rem + 3vw, 2rem) 5rem;
}

/* Masthead */
.doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}
.doc-head .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}
.doc-head .brand img { width: 34px; height: 34px; border-radius: 22%; display: block; }
.doc-head .brand span {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.doc-head .back {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.doc-head .back:hover { color: var(--accent); }

/* Title block */
.doc h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.6rem;
}
.doc .updated {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 clamp(2rem, 1rem + 2vw, 3rem);
}
.doc .lede {
  font-size: clamp(1.02rem, 1rem + 0.3vw, 1.15rem);
  color: var(--text-dim);
  border-left: 2px solid transparent;
  border-image: var(--grad) 1;
  padding-left: 1.1rem;
  margin: 0 0 2.5rem;
}

/* Sections */
.doc h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.doc h2 .n {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.doc p, .doc li { color: var(--text-dim); }
.doc p { margin: 0.7rem 0; }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { margin: 0.7rem 0; padding-left: 1.2rem; }
.doc li { margin: 0.4rem 0; }
.doc a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.doc a:hover { border-color: var(--accent); }

.doc .note {
  margin-top: 3rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.doc-foot {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.doc-foot a { color: var(--text-dim); text-decoration: none; }
.doc-foot a:hover { color: var(--accent); }
