Terroråtalad 18-åring kan dömas till fängelse