Is it ok / legal / allowed to copy some of the styles from stackoverflow / serverfault / etc. for use in a stack app?
Have a look to Trademark guidance.
and quoting Joel answering a previous question:
So, i don't think it is a good idea to copy StackOverflow's CSS for your apps.