Ethics in fact are a sort of code of conduct - something that you do or don't do because of how you believe you should behave yourself, regardless of what is legal. For example when I lived in Bangkok it was possible to buy pirated movies and CDs on the street - in fact it wasn't illegal to buy or sell them in Thailand. However considering this I still discussed this with my children as I believed it was unethical to buy pirated copyrighted material.
In my role at school I'm often talking to students about digital citizenship, about digital rights and responsibilities especially when using media in their products - hopefully this allows students to think about the effects of their actions on others and the consequences of their own actions and come to understand the need for ethical behaviour. Having these discussions at school will hopefully help students to make good choices when they face the ethical dilemmas of our our global world, for example in science and technology, development, business, finances and the environment.