About girls TTC in the UK

Hi ladies! I currently live in the UK, but I'm not from here. I was wondering of any of you know how the maternity leave in here really works? Can the company fire you or something when you are pregnant? Do you have any law in here that protects pregnant girls? Sorry if it may sound silly.. Thank you in advance and baby dust to ALL OF US <3