The loss of a pregnancy before 22 weeks, without outside intervention.
It is more common than people think, especially in the first trimester, and most of the time it is due to chromosomal changes in the embryo that have nothing to do with what the woman did or did not do. Bleeding with pain or cramps in pregnancy should be checked by a professional. It is a hard time: asking for emotional support is legitimate, and your family doctor or SNS 24 (808 24 24 24) can guide you. From 22 weeks, the DGS speaks of fetal death rather than miscarriage.
Source: DGS, Orientação n.º 020/2013 (certification of fetal deaths, from 22 weeks) — https://www.dgs.pt/directrizes-da-dgs/orientacoes-e-circulares-informativas/orientacao-n-0202013-de-31122013-pdf.aspx