Here is a common-sense legal solution to the whole thing:
In most cases, abortion is murder, and anyone who performs an abortion should be given the death penalty. This includes women who abort their own babies themselves, doctors who abort babies, etc.
If a person accidentally causes a woman to miscarry, they are not to be executed, but if it was on purpose they should be. People should be allowed to kill someone who intends to strike a woman to kill her fetus, just like for defending any person in danger, if there is no other way to prevent it.
If anyone hires someone to perform an abortion, or aborts the fetus within 40 days of conception, or if the fetus is not expected to live past 30 days after birth, these people are not to be executed, but there should be other penalties imposed.
Rape, incest, and birth defects are not valid excuses for an abortion.
A woman whose life is in danger due to her pregnancy is permitted to have an abortion, unless the baby's head has already emerged. If both the fetus and the mother would die, it's permitted to abort the fetus.
Contraception is permitted.
These are the non-negotiables, but I'm willing to leave some things open to the will of the people, such as coat hanger control laws, tax breaks for vandalizing Planned Parenthood, hanging the leftist Justices in effigy on government property on the anniversary of Roe V Wade, etc.