Brunei subsequently entered a period of decline brought on by internal strife over royal succession , colonial expansion of European powers , and piracy .