You can build it as weird as you have room for it as long as you have enough support under it to hold the weight and keep it from sagging. In my part of the country the acerage width is 4 ft.
Check for local sources for local regulations.
As an example, the legal minimum in New York seems to be 48":
www.dos.state.ny.us
As an example, the legal minimum in New York seems to be 48":
www.dos.state.ny.us