/* Legal entity / registered office disclosure block, shared by every page.
   Uses currentColor + opacity so it adapts to each page's light/dark theme. */
.legal-entity {
  max-width: 640px;
  margin: 24px auto calc(16px + env(safe-area-inset-bottom));
  padding: 0 16px;
  text-align: center;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.2px;
  color: inherit;
  opacity: 0.7;
}

.legal-entity p {
  margin: 0;
}

.legal-entity a {
  color: inherit;
  text-decoration: underline;
  margin: 0 8px;
}

.legal-entity-links {
  margin-bottom: 6px;
}

/* Landing pages with a locked, single-viewport layout (index.html): sits in
   the bottom-left corner instead of in page flow. */
.legal-entity--overlay {
  position: fixed;
  left: 32px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  right: 210px;
  z-index: 10;
  margin: 0;
  max-width: 460px;
  padding: 8px 12px;
  text-align: left;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 1;
}

@media (max-width: 768px) {
  .legal-entity--overlay {
    left: 12px;
    right: 12px;
    bottom: calc(56px + env(safe-area-inset-bottom));
    max-width: none;
    text-align: center;
    font-size: 8px;
  }
}

/* Presale page (index.html): muted, in the info panel. */
.legal-entity--presale {
  margin: 10px 0 0;
  padding: 0;
  max-width: none;
  text-align: left;
  font-size: 9px;
  color: var(--muted);
  opacity: 1;
}

/* Mobile presale layout reorders the panel's children; keep this last. */
@media (max-width: 899px) {
  .legal-entity--presale {
    order: 99;
    margin: 16px 0 0;
    text-align: center;
  }
}
