You may be thinking of the 18 inch maximum run of conduit regarding the sealing requirement. If the panel is rated for Div 1 Class 2 you should be able to install it anywhere. If not rated you can not install it
in the classified area.