Sex offender posed as bisexual teen online: court