mastering legal