Spanish media battles Meta for $582 million in court