Adult-looking dolls are legal in every western country. Some more conservative countries like in the middle east might outlaw them, check your own country’s laws if you are unsure whether that applies to you.
Child-looking dolls may not be legal even in western countries. What counts as child-looking can vary a lot, risk factors include small size (<145cm), small breasts, and juvenile facial features. To be 100% safe it is recommended to get a doll that has none of these. We are not lawyers here so questions about whether a specific doll will get you in trouble is discouraged. Also, note that posting or asking about child-like dolls is not allowed in this sub-reddit.