/* docs.css — shared style for /privacy, /compliance, /data-handling, /LANG/compliance
   Matches the main marketing page (ai-site-v6) visual system: dark bg, glassmorphism cards,
   Inter body + Playfair Display italic accents, blue + green accent colors.
   Tuned for readability: 16.5px body, line-height 1.75, airy section padding. */

:root {
  --bg: #050a18;
  --bg-mid: #0a1128;
  --bg-card: rgba(10,17,40,.85);
  --bg-card-h: rgba(15,25,55,.9);

  --blue: #4a9eff;
  --blue-bright: #60b0ff;
  --blue-dark: #2d7ce0;
  --blue-glow: rgba(74,158,255,.15);
  --green: #34d399;
  --green-soft: rgba(52,211,153,.1);
  --amber: #fbbf24;
  --red: #ef4444;
  --red-soft: rgba(239,68,68,.08);

  --white: #f0f4f8;
  --gray-100: #dce4ef;
  --gray-300: #b0bdd0;
  --gray-400: #8899b4;
  --gray-500: #5f7290;
  --gray-600: #3d4f6a;
  --gray-800: #1a2744;

  --border: rgba(255,255,255,.08);
  --border-l: rgba(255,255,255,.12);

  --serif: 'Playfair Display', Georgia, serif;
  --mono: 'DM Mono', 'SF Mono', Consolas, monospace;

  --max-w: 960px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--gray-300);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-bright); text-decoration: underline; }

strong { color: var(--gray-100); font-weight: 500; }
em { color: var(--gray-100); font-style: italic; }

code {
  background: var(--blue-glow);
  color: var(--blue-bright);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .88em;
  font-family: var(--mono);
}

/* ---------- header ---------- */
.doc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(5,10,24,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.doc-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.doc-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.doc-logo img { width: 32px; height: 32px; border-radius: 8px; }
.doc-logo-text { font-size: .95rem; font-weight: 500; color: var(--white); letter-spacing: .01em; }
.doc-logo-text span { color: var(--blue); }
.doc-logo:hover { text-decoration: none; }

.doc-header-right { display: flex; align-items: center; gap: 1rem; }
.doc-header-link { font-size: .88rem; color: var(--gray-400); font-weight: 400; }
.doc-header-link:hover { color: var(--white); text-decoration: none; }
.doc-header-badge { height: 30px; width: auto; opacity: .85; }
@media (max-width: 640px) {
  .doc-header-badge { display: none; }
  .doc-header-link { font-size: .82rem; }
}

/* ---------- layout ---------- */
.doc-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* Lede (hero) */
.doc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: var(--green-soft);
  border: 1px solid rgba(52,211,153,.22);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: .02em;
  margin-bottom: 20px;
}
.doc-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.doc-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.12;
  color: var(--white);
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.doc-sub {
  font-size: 17px;
  color: var(--gray-300);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 36px;
}
.doc-sub em { color: var(--white); font-style: italic; }

/* Meta pills row */
.doc-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: -8px 0 36px; }
.doc-meta-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--gray-300);
}
.doc-meta-pill strong { color: var(--white); }
.doc-meta-pill.green { background: var(--green-soft); border-color: rgba(52,211,153,.22); color: var(--green); }
.doc-meta-pill.amber { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.22); color: var(--amber); }

/* Cross-CTA (big link to sister page) */
.doc-cross-cta {
  background: linear-gradient(135deg, rgba(74,158,255,.08), rgba(52,211,153,.06));
  border: 1px solid rgba(74,158,255,.22);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 0 0 40px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.doc-cross-cta .text { flex: 1; min-width: 260px; }
.doc-cross-cta .text h3 { font-size: 16.5px; font-weight: 600; color: var(--white); margin: 0 0 4px; }
.doc-cross-cta .text p { font-size: 14.5px; color: var(--gray-300); margin: 0; line-height: 1.6; }
.doc-cross-cta a.btn {
  background: var(--blue);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(74,158,255,.22);
  transition: all .2s;
}
.doc-cross-cta a.btn:hover { background: var(--blue-dark); transform: translateY(-1px); color: #fff; text-decoration: none; }

/* Section = card */
.doc-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 36px 28px;
  margin-bottom: 28px;
  transition: border-color .2s;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.doc-section:hover { border-color: var(--border-l); }
.doc-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 6px;
  letter-spacing: -0.2px;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.doc-section h2 .h2-hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-500);
  font-style: italic;
  letter-spacing: 0;
}
.doc-section h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-100);
  margin: 24px 0 10px;
  letter-spacing: -0.1px;
}
.doc-section p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
  color: var(--gray-300);
}
.doc-section-intro {
  color: var(--gray-400);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 2px 0 20px;
}
.doc-section ul { margin: 6px 0 16px 22px; }
.doc-section li { margin-bottom: 8px; font-size: 15.5px; line-height: 1.7; }

/* Tables */
.doc-table-wrap { overflow-x: auto; margin: 0 0 6px; border-radius: 12px; border: 1px solid var(--border); }
table.doc-table { width: 100%; border-collapse: collapse; background: rgba(5,10,24,.4); }
.doc-table th, .doc-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  vertical-align: top;
  line-height: 1.6;
}
.doc-table tr:last-child td { border-bottom: none; }
.doc-table th {
  background: rgba(10,17,40,.75);
  font-weight: 600;
  color: var(--gray-100);
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.doc-table td { color: var(--gray-300); }
.doc-table td.t { font-weight: 500; color: var(--white); width: 28%; }
.doc-table td.scope { color: var(--gray-400); }
.doc-table a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.check { color: var(--green); font-weight: 500; }
.cross { color: var(--red); font-weight: 500; }
.dash { color: var(--gray-500); }

/* Highlight (honest-box / info) */
.doc-callout {
  background: linear-gradient(135deg, rgba(74,158,255,.08), rgba(74,158,255,.04));
  border: 1px solid rgba(74,158,255,.2);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 18px 0 8px;
  font-size: 15px;
  line-height: 1.7;
}
.doc-callout p { margin-bottom: 10px; }
.doc-callout p:last-child { margin-bottom: 0; }
.doc-callout strong { color: #93c5fd; }
.doc-callout.green { background: linear-gradient(135deg, rgba(52,211,153,.08), rgba(52,211,153,.04)); border-color: rgba(52,211,153,.2); }
.doc-callout.green strong { color: #6ee7b7; }

/* Flow diagram */
.doc-flow {
  background: rgba(5,10,24,.5);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  margin: 8px 0 24px;
  overflow-x: auto;
}
.doc-flow-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.doc-flow-step {
  background: rgba(74,158,255,.06);
  border: 1px solid rgba(74,158,255,.2);
  color: var(--gray-100);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.doc-flow-arrow { color: var(--gray-500); font-size: 20px; }

/* CTA block at end of page */
.doc-final-cta { text-align: center; margin: 48px 0 0; }
.doc-final-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(74,158,255,.25);
  transition: all .2s;
}
.doc-final-cta a:hover { background: var(--blue-dark); transform: translateY(-1px); text-decoration: none; color: #fff; }

/* ---------- footer ---------- */
.doc-footer {
  background: rgba(5,10,24,.7);
  border-top: 1px solid var(--border);
  padding: 40px 24px 28px;
  color: var(--gray-500);
  font-size: 13px;
}
.doc-footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.doc-footer img { height: 30px; width: auto; opacity: .8; margin-right: 12px; vertical-align: middle; }
.doc-footer-links a { color: var(--gray-400); margin-left: 18px; font-size: 13px; }
.doc-footer-links a:first-child { margin-left: 0; }
.doc-footer-copy { color: var(--gray-500); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .doc-main { padding: 40px 20px 72px; }
  .doc-section { padding: 24px 22px 20px; border-radius: 16px; }
  .doc-section h2 { font-size: 20px; }
  .doc-table th, .doc-table td { padding: 10px 12px; font-size: 13.5px; }
  .doc-cross-cta { flex-direction: column; align-items: flex-start; padding: 18px 20px; }
  .doc-footer-inner { flex-direction: column; align-items: flex-start; }
  .doc-footer-links a { margin-left: 0; margin-right: 18px; display: inline-block; }
}
