Ensuring legal compliance