mecanism legal