Freeze the video and it looks more like a cm than a foot.I am genuinely staggered by your view that the defender was "touching or barely missing" - there was easily a foot or more in it. It is plain and simple cheating and I cannot believe anyone buys that decision.
I think the dive by the Madrid player is out of order too though. The current Laws are just stupid about this sort of thing.