legal compliance check