Man who raped 12-year-old awarded joint custody of her child