Alignment Between the Decision-Making Logic of LLMs and Human Cognition: A Case Study on Legal LLMs