Legal immunity can be categorized into various forms depending on the entities involved and the nature of the activities they are engaged in. Diplomatic immunity offers foreign ambassadors exemption from most criminal laws in the host country, ensuring they can perform their duties without legal interference.