@page "/privacy" @rendermode InteractiveServer @inject IJSRuntime JSRuntime @code { private async Task ScrollToSection(string elementId) { await JSRuntime.InvokeVoidAsync("eval", $@" var el = document.getElementById('{elementId}'); if (el) {{ el.scrollIntoView({{ behavior: 'smooth', block: 'start' }}); }} "); } }