Hi.,
1 ) Kindly add code with “!important” to overwrite the color .
.header.header4 #logo, .header4 #menu-container {
background: #fff !important;
}
2 ) Yes , it will be safe to add custom css code. It won’t remove the content when you update the theme.