Building codes vary by country, state, and municipality. Identify your local code — NCC/AS in Australia, IBC/IRC in USA, NBCC in Canada, Eurocode in EU. Key parameters: guardrail height, baluster spacing, structural load rating, climbability restrictions.