1. Is it OK if I bring food there?

(What does 'it' stand for in this sentence?)

The word "it" doesn't refer to anything in particular. It's part of an idiom, and it just is!

You could use bigger words, but the sentence would mean the same thing: Is it permissible to bring food here? (or something like that)