/* Shared site chrome for every page: self-hosted fonts, Bootstrap Icons subset, top bar and footer.
   Loaded after app.css by the portal layout (views/layout.ts) and by the static legal pages.
   Fonts/icons are self-hosted so pages work under the strict CSP and make no third-party requests. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/assets/fonts/dm-sans-latin-opsz-normal.woff2) format('woff2-variations'), url(/assets/fonts/dm-sans-latin-opsz-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/dm-serif-display-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'bootstrap-icons';
  font-display: block;
  src: url(/assets/fonts/bootstrap-icons.woff2) format('woff2');
}

html, body { min-height: 100%; }
body { font-family: 'DM Sans', system-ui, sans-serif; display: flex; flex-direction: column; min-height: 100vh; }
body > main, body > .policy-wrap { flex: 1 0 auto; }
.serif { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }

/* ── Bootstrap Icons (only the glyphs the site uses — add a line from
      bootstrap-icons.css when you use a new one) ── */
.bi::before, [class^="bi-"]::before, [class*=" bi-"]::before {
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.bi-android2::before { content: "\f7d1"; }
.bi-apple::before { content: "\f65b"; }
.bi-arrow-counterclockwise::before { content: "\f117"; }
.bi-arrow-right::before { content: "\f138"; }
.bi-bank2::before { content: "\f62f"; }
.bi-book::before { content: "\f194"; }
.bi-box-arrow-right::before { content: "\f1c3"; }
.bi-box-arrow-up-right::before { content: "\f1c5"; }
.bi-building::before { content: "\f1dd"; }
.bi-buildings-fill::before { content: "\f87c"; }
.bi-c-circle::before { content: "\f7db"; }
.bi-calendar3::before { content: "\f214"; }
.bi-cart-fill::before { content: "\f23d"; }
.bi-chat-dots::before { content: "\f24a"; }
.bi-check-circle::before { content: "\f26b"; }
.bi-check-circle-fill::before { content: "\f26a"; }
.bi-check2::before { content: "\f272"; }
.bi-chevron-down::before { content: "\f282"; }
.bi-clock-history::before { content: "\f292"; }
.bi-copy::before { content: "\f759"; }
.bi-credit-card::before { content: "\f2dc"; }
.bi-database::before { content: "\f8c4"; }
.bi-diagram-3::before { content: "\f2ee"; }
.bi-display::before { content: "\f302"; }
.bi-download::before { content: "\f30a"; }
.bi-envelope::before { content: "\f32f"; }
.bi-exclamation-circle::before { content: "\f333"; }
.bi-exclamation-triangle-fill::before { content: "\f33a"; }
.bi-eye::before { content: "\f341"; }
.bi-eye-slash::before { content: "\f340"; }
.bi-eye-slash-fill::before { content: "\f33f"; }
.bi-file-text::before { content: "\f3b9"; }
.bi-gear::before { content: "\f3e5"; }
.bi-geo-alt-fill::before { content: "\f3e7"; }
.bi-globe::before { content: "\f3ee"; }
.bi-hand-thumbs-up::before { content: "\f407"; }
.bi-hdd-network::before { content: "\f40d"; }
.bi-info-circle::before { content: "\f431"; }
.bi-info-circle-fill::before { content: "\f430"; }
.bi-key::before { content: "\f44f"; }
.bi-laptop::before { content: "\f456"; }
.bi-life-preserver::before { content: "\f467"; }
.bi-lightning::before { content: "\f46f"; }
.bi-list-ul::before { content: "\f478"; }
.bi-lock::before { content: "\f47b"; }
.bi-patch-check::before { content: "\f4b6"; }
.bi-pen::before { content: "\f4c8"; }
.bi-pencil::before { content: "\f4cb"; }
.bi-person-badge::before { content: "\f4d3"; }
.bi-person-check::before { content: "\f4d6"; }
.bi-person-lock::before { content: "\f8a8"; }
.bi-phone::before { content: "\f4e7"; }
.bi-phone-fill::before { content: "\f4e2"; }
.bi-qr-code::before { content: "\f6ae"; }
.bi-question-circle::before { content: "\f505"; }
.bi-share::before { content: "\f52e"; }
.bi-shield-check::before { content: "\f52f"; }
.bi-shield-exclamation::before { content: "\f530"; }
.bi-shield-fill-check::before { content: "\f531"; }
.bi-shield-lock::before { content: "\f538"; }
.bi-shield-lock-fill::before { content: "\f537"; }
.bi-speedometer2::before { content: "\f580"; }
.bi-tag-fill::before { content: "\f5af"; }
.bi-trash::before { content: "\f5de"; }
.bi-ubuntu::before { content: "\f822"; }
.bi-windows::before { content: "\f65e"; }
.bi-x-circle::before { content: "\f623"; }
.bi-x-circle-fill::before { content: "\f622"; }
.bi-x-lg::before { content: "\f659"; }
.me-1 { margin-right: .25rem; }

/* ── Top bar ── */
.site-topbar {
  background: #070b11;
  border-bottom: 1px solid var(--border);
  padding: .7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.01em;
}
.site-brand:hover { color: #fff; text-decoration: none; }
.site-brand img { display: block; flex-shrink: 0; }
.site-brand .sub { color: var(--muted); font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { color: #94a3b8; text-decoration: none; font-size: .85rem; transition: color .15s; }
.site-nav a:hover, .site-nav a.active { color: #fff; text-decoration: none; }
.site-nav a.accent { color: #4361ee; font-weight: 500; }
.site-nav a.accent:hover { color: #93b4ff; }
.site-nav a.btn-buy { background: #4361ee; color: #fff; border-radius: 6px; padding: .35rem .9rem; font-weight: 500; }
.site-nav a.btn-buy:hover { background: #3451d1; color: #fff; }
.site-nav form.inline { display: inline-flex; }
.site-nav .btn-signout {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 1px solid var(--border); border-radius: 6px;
  color: #94a3b8; font: inherit; font-size: .82rem; padding: .3rem .7rem; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.site-nav .btn-signout:hover { color: #fff; border-color: #36506e; }

/* ── Footer ── */
.site-foot {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  flex-wrap: wrap;
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--head); text-decoration: none; }
.site-foot nav { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.site-foot .sep { color: #2a3a50; }

@media (max-width: 580px) {
  .site-topbar { padding: .7rem 1rem; }
  .site-nav { gap: .85rem; }
  .site-foot { padding: 1.25rem 1rem; justify-content: center; text-align: center; }
  .site-foot nav { justify-content: center; }
}
