Law is a system of rules that are enforced through social institutions to govern behavior.
Confidence is not "they will like me", it's "I'll be fine if they don't".