Neonates usually acquire HSV during delivery through exposure to infected genital secretions. The risk of transmission is higher if the mother has a primary HSV infection during childbirth, as viral shedding is more pronounced. However, transmission can also occur in the absence of visible lesions. Less commonly, the virus may be transmitted in utero or postnatally through close contact with HSV-positive individuals.