Come to Terms With (Something)

What does the expression “come to terms with” mean?

Definition: Feel acceptance toward something bad that has happened

Example: I’ve come to terms with the fact that Maria was promoted ahead of me. She’s done a good job.