Legal aspects of texts