If the buttstock was NOT removeable, it would be legal.
But unless you are some 19th-20th century European army officer, a rifle is more practical