Spaces:
Running
Running
Update src/privacy_policy.py
Browse files- src/privacy_policy.py +145 -70
src/privacy_policy.py
CHANGED
@@ -1,128 +1,203 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
def main():
|
4 |
-
#
|
5 |
st.markdown("""
|
6 |
<style>
|
7 |
-
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
.stApp {
|
10 |
-
|
11 |
-
background: #f8fafc;
|
12 |
min-height: 100vh;
|
13 |
-
color: #
|
|
|
|
|
14 |
}
|
15 |
|
16 |
-
#MainMenu {visibility:
|
17 |
footer {visibility: hidden;}
|
18 |
.stDeployButton {display: none;}
|
19 |
header {visibility: hidden;}
|
20 |
.stApp > header {visibility: hidden;}
|
21 |
|
22 |
-
|
23 |
-
|
|
|
|
|
24 |
margin: 0 auto;
|
25 |
-
padding:
|
26 |
}
|
27 |
|
28 |
-
|
29 |
-
|
30 |
text-align: center;
|
|
|
|
|
31 |
}
|
32 |
|
33 |
.header-title {
|
34 |
-
font-size: 2.
|
35 |
font-weight: 700;
|
36 |
-
color: #
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
|
|
|
42 |
.section {
|
43 |
-
margin-bottom:
|
|
|
|
|
|
|
|
|
44 |
}
|
45 |
|
46 |
.section-title {
|
47 |
-
font-size:
|
48 |
font-weight: 600;
|
49 |
-
color: #
|
50 |
-
margin-bottom:
|
51 |
display: flex;
|
52 |
align-items: center;
|
53 |
gap: 0.5rem;
|
54 |
}
|
55 |
|
56 |
.section-text {
|
57 |
-
font-size:
|
58 |
-
color: #
|
59 |
-
line-height: 1.
|
60 |
max-width: 800px;
|
61 |
margin: 0 auto;
|
62 |
}
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
border-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
}
|
68 |
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
</style>
|
73 |
""", unsafe_allow_html=True)
|
74 |
|
|
|
|
|
75 |
|
76 |
-
# Header
|
77 |
st.markdown("""
|
78 |
-
<div class="header">
|
79 |
-
<
|
80 |
-
|
81 |
-
</div>
|
82 |
</div>
|
83 |
""", unsafe_allow_html=True)
|
84 |
|
85 |
# Privacy Policy Content
|
86 |
st.markdown("""
|
87 |
-
<div class="
|
88 |
-
<
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
<
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
<
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
<
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
<
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
<
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
|
|
|
|
|
|
|
|
124 |
</div>
|
125 |
""", unsafe_allow_html=True)
|
126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
if __name__ == "__main__":
|
128 |
main()
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
def main():
|
4 |
+
# Updated CSS for Privacy Policy page
|
5 |
st.markdown("""
|
6 |
<style>
|
7 |
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
|
8 |
+
|
9 |
+
* {
|
10 |
+
font-family: 'Poppins', sans-serif !important;
|
11 |
+
box-sizing: border-box;
|
12 |
+
}
|
13 |
|
14 |
.stApp {
|
15 |
+
background: #ffffff;
|
|
|
16 |
min-height: 100vh;
|
17 |
+
color: #1f2a44;
|
18 |
+
margin: 0 !important;
|
19 |
+
padding: 0 !important;
|
20 |
}
|
21 |
|
22 |
+
#MainMenu {visibility: hidden;}
|
23 |
footer {visibility: hidden;}
|
24 |
.stDeployButton {display: none;}
|
25 |
header {visibility: hidden;}
|
26 |
.stApp > header {visibility: hidden;}
|
27 |
|
28 |
+
/* Main Container */
|
29 |
+
.main-container {
|
30 |
+
max-width: 100%;
|
31 |
+
width: 100%;
|
32 |
margin: 0 auto;
|
33 |
+
padding: 1rem 2rem;
|
34 |
}
|
35 |
|
36 |
+
/* Header Section */
|
37 |
+
.header-section {
|
38 |
text-align: center;
|
39 |
+
margin-bottom: 2.5rem;
|
40 |
+
padding: 1.5rem 0;
|
41 |
}
|
42 |
|
43 |
.header-title {
|
44 |
+
font-size: 2.25rem;
|
45 |
font-weight: 700;
|
46 |
+
color: #1f2a44;
|
47 |
+
margin: 0;
|
48 |
+
}
|
49 |
+
|
50 |
+
.header-subtitle {
|
51 |
+
font-size: 1rem;
|
52 |
+
color: #6b7280;
|
53 |
+
font-weight: 400;
|
54 |
+
max-width: 600px;
|
55 |
+
margin: 0.5rem auto 0;
|
56 |
}
|
57 |
|
58 |
+
/* Section Styling */
|
59 |
.section {
|
60 |
+
margin-bottom: 2.5rem;
|
61 |
+
max-width: 1200px;
|
62 |
+
margin-left: auto;
|
63 |
+
margin-right: auto;
|
64 |
+
padding: 0 1rem;
|
65 |
}
|
66 |
|
67 |
.section-title {
|
68 |
+
font-size: 1.5rem;
|
69 |
font-weight: 600;
|
70 |
+
color: #1f2a44;
|
71 |
+
margin-bottom: 1rem;
|
72 |
display: flex;
|
73 |
align-items: center;
|
74 |
gap: 0.5rem;
|
75 |
}
|
76 |
|
77 |
.section-text {
|
78 |
+
font-size: 0.95rem;
|
79 |
+
color: #6b7280;
|
80 |
+
line-height: 1.6;
|
81 |
max-width: 800px;
|
82 |
margin: 0 auto;
|
83 |
}
|
84 |
|
85 |
+
/* Footer */
|
86 |
+
.footer {
|
87 |
+
border-top: 1px solid #e5e7eb;
|
88 |
+
padding: 1.5rem 0;
|
89 |
+
text-align: center;
|
90 |
+
max-width: 1200px;
|
91 |
+
margin: 2rem auto 0;
|
92 |
+
}
|
93 |
+
|
94 |
+
/* Responsive Design */
|
95 |
+
@media (max-width: 1024px) {
|
96 |
+
.main-container {
|
97 |
+
padding: 1rem;
|
98 |
+
}
|
99 |
+
.section {
|
100 |
+
padding: 0 0.5rem;
|
101 |
+
}
|
102 |
}
|
103 |
|
104 |
+
@media (max-width: 768px) {
|
105 |
+
.header-title {
|
106 |
+
font-size: 1.75rem;
|
107 |
+
}
|
108 |
+
.header-subtitle {
|
109 |
+
font-size: 0.9rem;
|
110 |
+
}
|
111 |
+
.section-title {
|
112 |
+
font-size: 1.25rem;
|
113 |
+
}
|
114 |
+
.section-text {
|
115 |
+
font-size: 0.9rem;
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
@media (max-width: 480px) {
|
120 |
+
.header-title {
|
121 |
+
font-size: 1.5rem;
|
122 |
+
}
|
123 |
+
.header-subtitle {
|
124 |
+
font-size: 0.85rem;
|
125 |
+
}
|
126 |
+
.section-title {
|
127 |
+
font-size: 1.1rem;
|
128 |
+
}
|
129 |
+
.section-text {
|
130 |
+
font-size: 0.85rem;
|
131 |
+
}
|
132 |
}
|
133 |
</style>
|
134 |
""", unsafe_allow_html=True)
|
135 |
|
136 |
+
# Main Container
|
137 |
+
st.markdown('<div class="main-container">', unsafe_allow_html=True)
|
138 |
|
139 |
+
# Header Section
|
140 |
st.markdown("""
|
141 |
+
<div class="header-section">
|
142 |
+
<h1 class="header-title">π TruthCheck</h1>
|
143 |
+
<p class="header-subtitle">Your privacy is our priority</p>
|
|
|
144 |
</div>
|
145 |
""", unsafe_allow_html=True)
|
146 |
|
147 |
# Privacy Policy Content
|
148 |
st.markdown("""
|
149 |
+
<div class="section">
|
150 |
+
<h2 class="section-title">π Privacy Policy</h2>
|
151 |
+
<p class="section-text">
|
152 |
+
At TruthCheck, we are dedicated to safeguarding your personal information. This Privacy Policy explains how we collect, use, protect, and share your data to provide our services while respecting your privacy.
|
153 |
+
</p>
|
154 |
+
</div>
|
155 |
+
<div class="section">
|
156 |
+
<h3 class="section-title">π Information We Collect</h3>
|
157 |
+
<p class="section-text">
|
158 |
+
We collect information you voluntarily provide, such as news articles submitted for analysis and details entered in our contact form (e.g., name, email). Additionally, we may gather usage data, like browsing patterns, to enhance our platform's functionality and user experience.
|
159 |
+
</p>
|
160 |
+
</div>
|
161 |
+
<div class="section">
|
162 |
+
<h3 class="section-title">π How We Use Your Information</h3>
|
163 |
+
<p class="section-text">
|
164 |
+
Your information is used exclusively to deliver and improve our fake news detection services, respond to your inquiries, and enhance platform performance. We do not sell, rent, or share your personal data with third parties for marketing purposes.
|
165 |
+
</p>
|
166 |
+
</div>
|
167 |
+
<div class="section">
|
168 |
+
<h3 class="section-title">π‘οΈ Data Protection</h3>
|
169 |
+
<p class="section-text">
|
170 |
+
We employ industry-standard security measures, including encryption and secure servers, to protect your data from unauthorized access, alteration, or disclosure. Regular security audits ensure your information remains safe.
|
171 |
+
</p>
|
172 |
+
</div>
|
173 |
+
<div class="section">
|
174 |
+
<h3 class="section-title">πͺ Cookies and Tracking</h3>
|
175 |
+
<p class="section-text">
|
176 |
+
TruthCheck uses cookies to improve your browsing experience, such as remembering your preferences. You can manage or disable cookies through your browser settings, though this may impact certain features of our platform.
|
177 |
+
</p>
|
178 |
+
</div>
|
179 |
+
<div class="section">
|
180 |
+
<h3 class="section-title">π€ Third-Party Services</h3>
|
181 |
+
<p class="section-text">
|
182 |
+
We may use third-party services for analytics or hosting, but only with providers who adhere to strict data protection standards. These services do not have access to your personal information unless explicitly required for functionality.
|
183 |
+
</p>
|
184 |
+
</div>
|
185 |
+
<div class="section">
|
186 |
+
<h3 class="section-title">π© Contact Us</h3>
|
187 |
+
<p class="section-text">
|
188 |
+
If you have any questions or concerns about this Privacy Policy or how we handle your data, please reach out to us at <a href="mailto:[email protected]">[email protected]</a> or <a href="mailto:[email protected]">[email protected]</a>.
|
189 |
+
</p>
|
190 |
</div>
|
191 |
""", unsafe_allow_html=True)
|
192 |
|
193 |
+
# Footer
|
194 |
+
st.markdown("---")
|
195 |
+
st.markdown(
|
196 |
+
'<p style="text-align: center; font-weight: 600; font-size: 16px;">π» Developed with β€οΈ using Streamlit | Β© 2025</p>',
|
197 |
+
unsafe_allow_html=True
|
198 |
+
)
|
199 |
+
|
200 |
+
st.markdown('</div>', unsafe_allow_html=True) # Close main-container
|
201 |
+
|
202 |
if __name__ == "__main__":
|
203 |
main()
|