Does it? Most European countries offer 1 year paid maternity leave (quite often it's almost 14 months because PTO is still applies) then you can take another 1 year of unpaid leave. The employer cannot fire you.
If I’m a small business making enough to employ myself and 2 other people, how very carefully would I think about taking on someone whom I might need to pay to not* work at my company for a year?