Who's entitled to buyer's deposit in failed real estate deal?

Legal ramifications may surprise you