In 1996 we had a spelling reform, which prohibited the use of capital letters in "du" and "dir", but later on - I think it was in 2004 or 2005 - the orthography has been revised.
Since that time you may again write "Du" and "Dir" capitalized (in letters and E-Mails).
But it's always correct to write them with small letters (except at the beginning of the phrase, of course)
The odd thing (if any) is that there is/was a law against writing "du"/"dir". Only in Germany, I suppose... ;)
That would be completely wrong in English, you should never ever use "You" and "Your" in informal situations as a way of being polite in English. You can be polite in your choice of words not by using "You", whereas you can be polite by using "Du" in German.
Legal documents are quite another matter as any word can commence with a capital depending on the context, even Client, Company etc etc.
But if you consider the increasing amount of restrictions (esp. concerning the music industry), it's possibly only a matter of time when you will get prosecuted only for a wrong orthography (particularly if you imitate the wrong spelling of another person, who might have the copyright on his creation). :)