Question: what is the difference between legal obligation and contractual obligation?
Answer: A legal obligation is anything the law requires you to do. It depends on the law of each country and can be very wide. You are bound by it whether you agree with it or not. A contractual obligation is narrower.