/* ============================================================================
   LeadIQ — public legal pages (Privacy / Terms / DPA).

   EXTERNAL stylesheet ON PURPOSE: the public (non-iframe) CSP is
   `default-src 'self'` with NO 'unsafe-inline' for styles, so an inline <style>
   block is blocked by the browser (that's why these pages rendered raw). A
   same-origin /static/*.css loads fine under 'self'. Keep all legal-page CSS
   here — do not move it back inline.
   ========================================================================== */
:root {
  --ink: #1f2933;
  --muted: #6b7a89;
  --line: #e7ecf1;
  --blue: #0a93c2;
  --blue-2: #2fc6f6;
  --bg: #eef3f6;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 460px at 50% -160px, #e6f5fc 0%, rgba(230,245,252,0) 70%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Sticky brand bar ---------- */
.lg-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(1.5) blur(10px);
  backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--line);
}
.lg-top-in { max-width: 1060px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 12px; }
.lg-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.lg-brand img { height: 32px; width: auto; display: block; }
.lg-brand-tx b { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; display: block; }
.lg-brand-tx span { font-size: 11.5px; color: var(--muted); }
.lg-site { margin-inline-start: auto; font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; transition: border-color .15s, box-shadow .15s; }
.lg-site:hover { border-color: #bfe6f6; box-shadow: 0 3px 10px rgba(47,198,246,.14); }

/* ---------- Hero + nav tabs ---------- */
.lg-hero { max-width: 1060px; margin: 0 auto; padding: 34px 24px 0; }
.lg-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); margin: 0 0 4px; }
.lg-eyebrow .dot { color: #c7d2db; margin: 0 7px; }
.lg-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.lg-tab { font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 9px 17px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; transition: border-color .15s, color .15s, box-shadow .15s; }
.lg-tab:hover { border-color: #bfe6f6; color: var(--blue); }
.lg-tab.active { background: linear-gradient(135deg, var(--blue-2), var(--blue)); border-color: transparent; color: #fff;
  box-shadow: 0 5px 16px rgba(47,198,246,.32); }

/* ---------- Document card ---------- */
.lg-wrap { max-width: 1060px; margin: 18px auto 0; padding: 0 24px 16px; }
.lg-doc { background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 10px 34px rgba(16,42,67,.07); padding: 46px 54px; }

/* ---------- Rendered markdown ---------- */
.legal-content { max-width: 770px; }
.legal-content > :first-child { margin-top: 0; }
.legal-content h1 { font-size: 31px; line-height: 1.18; font-weight: 800; letter-spacing: -.022em; margin: 0 0 4px; color: var(--ink); }
/* Document meta block (Effective date / Last updated / Controller). The source
   markdown puts these on separate lines inside ONE <p>; pre-line keeps the
   line breaks so they stack instead of running together. */
.legal-content h1 + p { white-space: pre-line; color: var(--muted); font-size: 13.5px; line-height: 1.85;
  background: #f5fafd; border: 1px solid #e1eef5; border-inline-start: 3px solid var(--blue-2);
  border-radius: 12px; padding: 13px 17px; margin: 16px 0 0; }
.legal-content h1 + p strong { color: var(--ink); font-weight: 700; }
.legal-content hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.legal-content h2 { font-size: 20px; font-weight: 800; color: var(--ink); margin: 38px 0 13px; letter-spacing: -.01em;
  scroll-margin-top: 80px; }
.legal-content h3 { font-size: 16px; font-weight: 700; color: #33414f; margin: 24px 0 9px; scroll-margin-top: 80px; }
.legal-content p, .legal-content li { color: #3a4856; }
.legal-content p { margin: 0 0 13px; }
.legal-content ul, .legal-content ol { margin: 0 0 15px; padding-inline-start: 22px; }
.legal-content li { margin: 6px 0; }
.legal-content li::marker { color: #9fb0bd; }
.legal-content strong { color: var(--ink); font-weight: 700; }
.legal-content a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(10,147,194,.32); transition: border-color .15s; }
.legal-content a:hover { border-bottom-color: var(--blue); }
.legal-content code { background: #eef3f7; color: #0b5f7d; padding: 2px 7px; border-radius: 6px; font-size: .86em;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace; }
.legal-content table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 16px 0 22px; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.legal-content th, .legal-content td { border-bottom: 1px solid var(--line); padding: 11px 15px; text-align: start; vertical-align: top; }
.legal-content thead th { background: #f3f8fb; color: #33414f; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.legal-content tbody tr:nth-child(even) { background: #fafcfe; }
.legal-content tbody tr:last-child td { border-bottom: 0; }
.legal-content blockquote { margin: 16px 0; padding: 11px 18px; border-inline-start: 3px solid var(--blue-2);
  background: #f5fafd; color: #41525f; border-radius: 0 12px 12px 0; }

/* ---------- Footer ---------- */
.lg-foot { max-width: 1060px; margin: 0 auto; padding: 28px 24px 60px; }
.lg-foot-grid { border-top: 1px solid var(--line); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 22px 56px; align-items: flex-start; }
.lg-foot-col b { color: var(--ink); display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.lg-foot-col { font-size: 13px; color: var(--muted); line-height: 1.7; }
.lg-foot-col a { color: var(--blue); text-decoration: none; }
.lg-foot-col a:hover { text-decoration: underline; }
.lg-foot-links a { display: inline-block; margin-inline-end: 16px; font-weight: 600; }
.lg-copy { width: 100%; color: #9aa7b3; font-size: 12px; margin-top: 10px; line-height: 1.6; }

@media (max-width: 680px) {
  .lg-doc { padding: 28px 22px; border-radius: 16px; }
  .legal-content h1 { font-size: 25px; }
  .lg-hero, .lg-wrap, .lg-foot, .lg-top-in { padding-left: 16px; padding-right: 16px; }
  .legal-content { font-size: 15px; }
  .legal-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .lg-brand-tx span { display: none; }
}
