How to comply with legislation