Complex sentence: When the overall situation is amicable, it can mean that a person is thinking deeply about what is being discussed, but in a serious or confrontational situation, it can mean that a person is expressing opposition.
Split into simpler sentences: When the overall situation is amicable, it can mean that a person is thinking deeply about what is being discussed. But in a serious or confrontational situation, it can mean that a person is expressing opposition.