If you're thinking of running your own Mastodon instance, EFF's Legal Director Corynne McSherry breaks down some of the common legal issues and practical considerations here:

https://www.eff.org/deeplinks/2022/12/user-generated-content-and-fediverse-legal-primer

User Generated Content and the Fediverse: A Legal Primer

A growing number of people are experimenting with federated alternatives to social media like Mastodon, either by joining an “instance” hosted by someone else or creating their own instance by running the free, open-source software on a server they control. (See more about this movement and joining...

Electronic Frontier Foundation
@evacide I started setting up an instance on a spare serverbut it broke and I haven't had time to repair it. Mastodon software is, well I'm not going to say it...
@evacide yup. I’m running one but have decided to focus on this hosted account. I plan to look into self-hosting again, but will focus on ActivityPub software optimized for small/single user instances.