It is horrific.
I know under UK law there's a limit to what you can contractually sign away - I don't think, for eg, if employers pressed you into signing a contract which committed you to perform behaviours that turned out to be criminal, that such a contract could be enforced.
I don't know whether Spanish law, or indeed EU law would be similar. Though as PP have noted, there is a problem in that under Spanish law, having sex with an unconscious woman who has not given consent doesn't count as rape. 
I hope there's some way of her getting some form of redress. Any Spanish mumsnetters know how this is being reported (or not) in Spain?