Refrigerator in Sprinter, bear country issues?

Not sure where to post this, I mean how to categorize…
We are considering a sprinter for travel to western us national parks, with a moderate level of interior mods for sleeping and storage. Something that I am not sure about is how safe or even permissible it is to have a refrigerator in a van, when bears are an issue. Any normal car cannot have any food inside. Apparently RVs get around this if they are “hard sided” whatever that means. A bear can get into an RV right? Anyways does anyone know about this issue?