Captains are never "legally responsible to the management"! The management are just their employers!
There is a difference!🙄
The 3 legged stool is an important concept.
1) Disobey the company's SOPs? = Lose your job.
2) Disobey the ministry's rules? = Lose your licence.
3) Disobey the law? = Lose your liberty.
There is of course a fourth level, which includes losing your self respect, or losing your life.