Legal opportunism is when someone takes advantage of a legal situation to get something they want. For example, if someone knows there's a law that they can use to get something they want (like a job or a piece of land), they will use this law to get what they want. It's like when someone takes advantage of a luck situation to get something good for themselves.