The diary is encrypted on the phone and between phones.
It’s stored on your phone as encrypted data, and a diary shared with a team is encrypted end to end: each phone holds the keys, the relay that carries changes between them stores only encrypted data, and it knows phones by their public keys, not by name. When someone is removed, the keys are rotated so their phone can’t read what comes after, and the app refuses any later change from that phone.