since you are on the airside, you can freely move between the terminals. You have plenty of time to do that since most of the travel between terminals takes 15-20 minutes and you don't have to go thru security checks.
i would not suggest getting out of the airport for a 4 hour layover it is too risky and not worth it. Just use loungebuddy app as suggested by others and stay in the airport lounge.