How does a legal opinion ensure IP compliance?