Inline Link for Field in Simple Form

I needed to put a link to the right of a checkbox on my user sign-up form so that people could view my app’s terms of service and privacy policy before agreeing to it.  I was having trouble figuring out how to do it with Simple_Form, but eventually I was able to figure it out based on this Stack Overflow question.

My final code looked like this:

<%= content_for(:the_links) do %>
  I agree to the <%= link_to "Terms of Service", terms_path,:remote => true %>
  and <%=link_to "Privacy Policy", privacy_path, :remote => true%>
<% end %>

<%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
  <%= f.input :terms, :as => :boolean, boolean_style: :inline, :label => content_for(:the_links)%> 
<% end %>