The court shall remand the party if it appears that the party is legally detained in custody.
AS 12.75.090