/* Compliance layer: fixed footer + first-visit legal gate. */

#app {
  height: calc(100vh - 44px);
}

.legal-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  min-height: 44px;  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border-top: 1px solid #1b2a40;
  background: rgba(7, 12, 20, 0.96);
  color: #7d8ba3;
  font-size: 8.5px;
  line-height: 1.45;
}
.legal-footer p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.legal-footer b { color: #a9b8ce; font-weight: 600; }
.legal-footer button {
  flex: 0 0 auto;
  border: 1px solid #2a3b56;
  background: #0d1420;
  color: #8eb6e6;
  border-radius: 4px;
  height: 22px;
  padding: 0 7px;
  font-size: 8.5px;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 7, 13, 0.88);
}
.debug-fab { bottom: 56px !important; }
.legal-modal.hidden { display: none; }
.legal-card {
  width: min(640px, 96vw);
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #3a4d6c;
  background: #0c1420;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.75);
  padding: 18px;
}
.legal-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.legal-head h2 {
  flex: 1;
  margin: 0;
  color: #eef4ff;
  font-size: 18px;
}
.legal-close {
  border: 0;
  background: transparent;
  color: #8fa0bb;
  font-size: 22px;
  line-height: 1;
}
.legal-close.hidden { display: none; }
.legal-body {
  margin-top: 10px;
  color: #b6c3d7;
  font-size: 11px;
  line-height: 1.8;
}
.legal-body p { margin: 0 0 8px; }
.legal-body .legal-warn { color: #e8b55c; }
.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding: 9px;
  border-radius: 6px;
  border: 1px solid #3a2c22;
  background: #1a140f;
  color: #d5c39b;
  font-size: 10px;
  line-height: 1.6;
}
.legal-check input { margin-top: 2px; }
.legal-hint {
  margin-top: 6px;
  color: #e8b55c;
  font-size: 9.5px;
  line-height: 1.5;
}
.legal-hint.ok { color: #35d07f; }
.legal-hint.warn { color: #ff5c5c; }
.legal-accept {
  width: 100%;
  height: 38px;
  margin-top: 10px;
  border-radius: 7px;
  border: 1px solid #2d5b9a;
  background: #1d4f9a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.legal-accept:disabled {
  background: #152132;
  border-color: #233249;
  color: #5f6d84;
}

@media (max-width: 700px) {
  .legal-footer { font-size: 8px; }
  .legal-footer p { max-height: 30px; overflow: hidden; }
  #app { height: calc(100vh - 48px); }
}
