how to resolve legal issues