Microsoft Teams is built on the Office 365 hyper-scale, enterprise-grade cloud, delivering advanced security and compliance capabilities. Data is encrypted in transit and at rest.
Files are stored in SharePoint and are backed by SharePoint encryption. Notes are stored in OneNote and are backed by OneNote encryption. You can read more about security and compliance in the Security and Compliance in Microsoft Teams article from Microsoft.