/* Shared by application pages and standalone public documents. */
:root {
  --investment-notice-height: calc(34px + env(safe-area-inset-bottom, 0px));
}

html {
  padding-bottom: var(--investment-notice-height);
}

body > .investment-disclaimer {
  position: fixed;
  inset: auto 0 0;
  z-index: 9999;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: var(--investment-notice-height);
  margin: 0;
  padding: 0 max(20px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(20px, env(safe-area-inset-left, 0px));
  border-top: 1px solid #bca77d30;
  background: #10151d;
  color: #d1c5ad;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .025em;
  text-align: left;
}

.investment-disclaimer > span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 9px 2px 0;
  border-radius: 50%;
  background: #c3aa7c;
}

/* Keep the viewport-sized trading workspace above the notice. */
html body.page-panel.panel-live-tab,
html body.page-panel.panel-live-tab #site {
  height: calc(100dvh - var(--investment-notice-height));
}

body > #bon-support {
  bottom: calc(var(--investment-notice-height) + 16px);
}

@media print {
  html { padding-bottom: 0; }
  body > .investment-disclaimer { position: static; color: #333; background: white; }
}
