Ensuring legal compliance in recruitment automation