Loophole meaning

what is the meaning of loopholes?can you please explain me. i have watch the video but i still have a doubt

a way of avoiding something because the words of a rule or law are badly chosen