/*
 * Bridgepointe - legal pages
 *
 * Standalone: no framework, no build step, no assets beyond the two webfonts.
 * Tokens mirror the corporate site (bridgepointe.us/styles.css) so these pages
 * read as the same property whether they are served at
 * https://bridgepointe.us/legal/ or iframed into another site.
 *
 * Two presentation modes:
 *   full page  - nav, hero, document, footer
 *   .bp-embed  - set by the page when it is loaded with ?embed=1 (the same
 *                pages inside an iframe from any product site); chrome is
 *                dropped, the document stands alone, and the page reports its
 *                own height to the parent frame (legal-embed.js does that).
 */

:root {
  --bp-bg:            #080c14;
  --bp-surface:       #0d1320;
  --bp-surface2:      #111827;
  --bp-border:        rgba(255, 255, 255, .07);
  --bp-border-strong: rgba(255, 255, 255, .14);

  --bp-blue:          #3b82f6;
  --bp-blue-dim:      #1d4ed8;
  --bp-cyan:          #06b6d4;

  --bp-text:          #f1f5f9;
  --bp-text-muted:    #94a3b8;
  --bp-text-dim:      #64748b;

  --bp-radius:        14px;
  --bp-radius-sm:     8px;

  --bp-font:          'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bp-mono:          'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bp-bg);
  color: var(--bp-text-muted);
  font: 400 16px/1.7 var(--bp-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--bp-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--bp-blue); outline-offset: 3px; border-radius: var(--bp-radius-sm); }

h1, h2, h3 { color: var(--bp-text); margin: 0; letter-spacing: -.015em; font-weight: 700; }

code, pre { font-family: var(--bp-mono); font-size: .86em; }

.bp-wrap { max-width: 1120px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

/* ---- nav ---------------------------------------------------------------- */
.bp-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 12, 20, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bp-border);
}
.bp-nav .bp-wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }
.bp-brand { font-family: var(--bp-mono); font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--bp-text); }
.bp-brand:hover { text-decoration: none; }
.bp-crumb {
  font: 500 11px/1 var(--bp-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--bp-text-dim);
  border-left: 1px solid var(--bp-border-strong);
  padding-left: 14px;
}
.bp-nav ul { display: flex; gap: 18px; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; }
.bp-nav ul a { color: var(--bp-text-muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.bp-nav ul a:hover, .bp-nav ul a[aria-current="page"] { color: var(--bp-text); text-decoration: none; }

/* ---- hero --------------------------------------------------------------- */
.bp-hero {
  padding-block: clamp(32px, 5vw, 56px) clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--bp-border);
  background:
    radial-gradient(ellipse 700px 280px at 12% -10%, rgba(59, 130, 246, .18), transparent 70%),
    radial-gradient(ellipse 520px 220px at 92% 0%, rgba(6, 182, 212, .10), transparent 70%);
}
.bp-eyebrow {
  display: block;
  font: 500 11.5px/1 var(--bp-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--bp-cyan);
  margin-bottom: 14px;
}
.bp-hero h1 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.15; }
.bp-meta {
  display: flex; gap: 8px 22px; flex-wrap: wrap;
  margin-top: 16px;
  font: 400 12.5px/1.5 var(--bp-mono);
  color: var(--bp-text-dim);
}
.bp-meta b { color: var(--bp-text-muted); font-weight: 500; }

/* ---- document ----------------------------------------------------------- */
.bp-body { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 7vw, 88px); }
.bp-doc { max-width: 74ch; display: grid; gap: 26px; }
.bp-doc .bp-lead {
  margin: 0;
  font-size: 15.5px;
  color: var(--bp-text-muted);
  border-left: 2px solid var(--bp-blue-dim);
  padding-left: 16px;
}
.bp-doc section { display: grid; gap: 10px; }
.bp-doc section h2 {
  font-size: 18px;
  font-weight: 600;
  scroll-margin-top: 84px;
  letter-spacing: -.005em;
}
.bp-doc section h3 { font-size: 15px; font-weight: 600; color: var(--bp-text); }
.bp-doc .bp-num { color: var(--bp-text-dim); font-family: var(--bp-mono); font-weight: 500; margin-right: 8px; }
.bp-doc p, .bp-doc li { margin: 0; font-size: 15px; color: var(--bp-text-muted); }
.bp-doc ul, .bp-doc ol { margin: 0; padding-left: 1.35em; display: grid; gap: 7px; }
.bp-doc li strong, .bp-doc p strong { color: var(--bp-text); font-weight: 600; }
.bp-doc .bp-caps { color: var(--bp-text); font-size: 14px; line-height: 1.65; letter-spacing: .005em; }
.bp-doc .bp-note {
  border: 1px solid var(--bp-border);
  border-left: 2px solid var(--bp-cyan);
  border-radius: var(--bp-radius-sm);
  background: var(--bp-surface);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--bp-text-dim);
}
.bp-doc hr { border: 0; border-top: 1px solid var(--bp-border); margin: 4px 0; width: 100%; }
.bp-footlinks { margin: 6px 0 0; font-size: 14px; color: var(--bp-text-dim); }
.bp-footlinks a { color: var(--bp-text-muted); }

/* ---- index cards -------------------------------------------------------- */
.bp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bp-card {
  display: grid; gap: 8px; align-content: start;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  background: var(--bp-surface);
  padding: 20px;
  transition: border-color .18s ease, transform .18s ease;
}
a.bp-card:hover { border-color: rgba(59, 130, 246, .45); transform: translateY(-1px); text-decoration: none; }
.bp-card h2 { font-size: 16px; font-weight: 600; }
.bp-card p { margin: 0; font-size: 14px; color: var(--bp-text-dim); }
.bp-card .bp-card-tag { font: 500 11px/1 var(--bp-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bp-cyan); }
@media (max-width: 640px) { .bp-cards { grid-template-columns: minmax(0, 1fr); } }

.bp-snippet {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  background: var(--bp-surface2);
  padding: 14px 16px;
  overflow-x: auto;
}
.bp-snippet code { color: var(--bp-text); white-space: pre; display: block; font-size: 12.5px; line-height: 1.7; }
details.bp-details { display: grid; gap: 12px; }
details.bp-details > summary {
  cursor: pointer; color: var(--bp-text); font-size: 15px; font-weight: 600;
  list-style: none;
}
details.bp-details > summary::-webkit-details-marker { display: none; }
details.bp-details > summary::before { content: '+ '; color: var(--bp-cyan); font-family: var(--bp-mono); }
details.bp-details[open] > summary::before { content: '- '; }

/* ---- footer ------------------------------------------------------------- */
.bp-footer { border-top: 1px solid var(--bp-border); padding-block: 40px 44px; background: var(--bp-surface); font-size: 13.5px; color: var(--bp-text-dim); }
.bp-footer .bp-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 28px; }
.bp-footer h4 { margin: 0 0 12px; font: 500 11px/1 var(--bp-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bp-text-muted); }
.bp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bp-footer a { color: var(--bp-text-dim); }
.bp-footer a:hover { color: var(--bp-text); text-decoration: none; }
.bp-footer .bp-sig { margin: 0; max-width: 36ch; }
.bp-footer .bp-fine { grid-column: 1 / -1; border-top: 1px solid var(--bp-border); padding-top: 18px; color: var(--bp-text-dim); }
@media (max-width: 760px) {
  .bp-footer .bp-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-footer .bp-wrap > div:first-child { grid-column: 1 / -1; }
}

/* ---- embed mode --------------------------------------------------------- */
/* Same pages, inside an iframe on a product site. Chrome goes, the document
   and its heading stay, and a way back to the canonical page is offered. */
.bp-embedjump { display: none; }
.bp-embed body { background: transparent; }
.bp-embed .bp-nav,
.bp-embed .bp-footer { display: none; }
.bp-embed .bp-hero {
  background: none;
  border-bottom: 1px solid var(--bp-border);
  padding-block: 8px 18px;
}
.bp-embed .bp-hero h1 { font-size: clamp(22px, 3.4vw, 28px); }
.bp-embed .bp-body { padding-block: 22px 8px; }
.bp-embed .bp-doc { max-width: none; }
.bp-embed .bp-embedjump { display: block; margin: 18px 0 0; font-size: 13px; color: var(--bp-text-dim); }
.bp-embed .bp-embedjump a { color: var(--bp-text-muted); }

/* ---- print -------------------------------------------------------------- */
/* A policy that gets printed must print clean, black on white, no chrome. */
@media print {
  .bp-nav, .bp-footer, .bp-embedjump { display: none !important; }
  body { background: #fff; color: #111; }
  .bp-hero { background: none; border-bottom: 1px solid #111; }
  .bp-hero h1, .bp-doc h2, .bp-doc h3, .bp-doc strong, .bp-eyebrow, .bp-meta, .bp-meta b { color: #000; }
  .bp-doc p, .bp-doc li, .bp-doc .bp-lead, .bp-lead { color: #111; }
  .bp-doc .bp-note, .bp-snippet, .bp-card { border-color: #999; background: #fff; color: #111; }
  a { color: #000; text-decoration: underline; }
}
