legal aspects of writing