Socio-cognitive effects in legal decision-making: a formal modelling