Obeying the law is The first Step toward ethical behavior
The law is different in each society because it created based on the condition which that society perceive as ideal/Ethical. so technically, by obeying the law you've behave ethically in that specific place
hope this helps