
In accordance with something
Following Rules
Use this phrase when you do something because rules or laws say you should. 
Legal Context
It's often used in legal or formal settings to express compliance with guidelines or regulations. 
Responsibility
Shows that actions are taken with a sense of responsibility towards an authority or requirement. 