Cryptomator and Terms of Service of Cloud providers

Is it legal to encrypt content using public cloud service? Are we violating it’s terms of service?

I want to develop a Cryptomator-like app that will encrypt Todoist tasks content so that servers can’t track you. Is it legal this Cryptodoist app?

Thanks,

Regards,

Quim