/* link that looks like <a>, but is button */
.mkf-linklike{
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--mkf-accent);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.mkf-modal[hidden]{ display:none; }

.mkf-modal{
  position: fixed;
  inset: 0;
  z-index: 999;
}

.mkf-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 24, .45);
}

.mkf-modal__dialog{
  position: relative;
  width: min(860px, calc(100% - 24px));
  margin: 48px auto;
  border-radius: 16px;
  background: var(--mkf-surface);
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  overflow: hidden;
}

.mkf-modal__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--mkf-border);
}

.mkf-modal__title{
  font-weight: 800;
  font-size: 16px;
  color: var(--mkf-on-surface);
}

.mkf-modal__close{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--mkf-border);
  background: #fff;
  cursor: pointer;
}

.mkf-modal__body{
  padding: 16px;
  max-height: min(65vh, 520px);
  overflow: auto;          /* ✅ прокрутка колесом */
  overscroll-behavior: contain;
  line-height: 1.45;
  color: var(--mkf-on-surface);
}

.mkf-modal__foot{
  padding: 12px 16px;
  border-top: 1px solid var(--mkf-border);
  display: flex;
  justify-content: flex-end;
}

/* Optional: make headings pleasant */
.mkf-legal h3{
  margin: 14px 0 8px;
  font-size: 14px;
}
.mkf-legal p, .mkf-legal li{
  font-size: 13px;
  color: var(--mkf-muted);
}
