When should a legal opinion be obtained for intellectual property protection