Propriety | Definition of Propriety by Merriam-Webster

In an earlier era, when social manners were far more elaborate than they are today, propriety and impropriety were words in constant use. Today we're more likely to use them in other contexts. We may talk about the propriety of government officials' dealings with private citizens, the propriety of the relationship between a lawyer and a judge, or the impropriety of speaking out of turn in a meeting that follows Robert's rules of order. Relations between men and women still present questions of propriety, but today it's often in the workplace rather than in social settings. Wherever rules, principles, and standard procedures have been clearly stated, propriety can become an issue. Something improper usually isn't actually illegal, but it makes people uncomfortable by giving the impression that something isn't quite right.

https://www.merriam-webster.com/dictionary/propriety