Highly disturbing that the court is allowed to request that much data without any legal restrictions [on privacy].
When it comes to Gmail they could take an approach like password managers where the user's password is instrumental to decrypt the data and Google lacks any manner to circumvent the encryption - they just choose not to.
However, my point was that the comment I replied to was factually wrong -- there is legal action Google could choose to take instead of immediately complying.
In particularly sensitive cases, the judge may appoint an official to be a go-between between the evidence and the prosecution. For example: https://miami.cbslocal.com/2018/04/26/special-master-evidenc...