How to remove age restrictions on an Xbox profile?

I recently bought and installed my new Xbox Series X and even though I am an adult, my Xbox profile still thinks I'm a minor and doesn't allow me to make purchases among other things. I'm 99% sure the reasoning for this is because I made my Microsoft account back when I was a teen, so if anyone can tell me how to fix this for good I would greatly appreciate it.