IPA: /ˈliːɡəli/
KK: /ˈlɛgəli/
In a way that is allowed by the law or according to legal rules.
The contract was legally binding, meaning both parties had to follow its terms.
Legally → It is formed from "legal" (from Latin "legalis", meaning pertaining to the law) and the suffix "-ly" (meaning in a manner of). The word "legally" means in a manner pertaining to the law.
Think of something being done 'in a manner of' ('-ly') that relates to the law ('legal'). This helps you remember that 'legally' refers to actions that are in accordance with the law.