Adding foot=no implies a legal prohibition for pedestrians on the carriageway, which would be explicitly signed. Adding appropriate sidewalk tags (in this case, sidewalk:both=separate).

Adding access=no prohibited routing across the bridge for *all* transport modes, which is unlikely to be what you intended.