There was an interesting article[1] a while back about the social/community roles that McDonalds plays for a large variety of groups. They are usually pretty good about "loitering" if you (a) buy something and (b) are non-disruptive.
1: https://www.theguardian.com/business/2016/jun/08/mcdonalds-c...