[legal-api-links] Load Terms of Use and Privacy Policy from Atomenta API

Terms and Privacy screens now fetch the real PediFoods customer PDFs
from the backend instead of showing static placeholder text. Also
surfaces both links on the Profile screen below the version label,
not just during registration.
This commit is contained in:
Daniel Arantes Loverde
2026-07-09 09:55:36 -03:00
parent 83b991c0f0
commit 91c53c90d5
5 changed files with 168 additions and 62 deletions

View File

@@ -90,7 +90,27 @@ struct ProfileView: View {
Text("Versão 1.0b")
.font(.system(size: 16, weight: .medium))
.foregroundStyle(AppColors.textMuted)
.padding(.bottom, 12)
HStack(spacing: 6) {
NavigationLink {
TermsOfUseView()
} label: {
Text("Termos de Uso")
}
.buttonStyle(.plain)
Text("·")
NavigationLink {
PrivacyPolicyView()
} label: {
Text("Política de Privacidade")
}
.buttonStyle(.plain)
}
.font(.system(size: 14, weight: .medium))
.foregroundStyle(AppColors.textMuted)
.padding(.bottom, 12)
}
}
.ignoresSafeArea(edges: .top)