Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update frontend/src/pages/LegalPage.jsx
Browse files
frontend/src/pages/LegalPage.jsx
CHANGED
|
@@ -5,7 +5,6 @@ export const LEGAL_POLICIES = {
|
|
| 5 |
terms: {
|
| 6 |
id: 'terms',
|
| 7 |
title: 'Terms of Service',
|
| 8 |
-
icon: 'gavel',
|
| 9 |
effectiveDate: 'August 15, 2026',
|
| 10 |
sections: [
|
| 11 |
{
|
|
@@ -38,7 +37,6 @@ export const LEGAL_POLICIES = {
|
|
| 38 |
privacy: {
|
| 39 |
id: 'privacy',
|
| 40 |
title: 'Privacy Policy',
|
| 41 |
-
icon: 'verified_user',
|
| 42 |
effectiveDate: 'August 15, 2026',
|
| 43 |
intro: 'This Privacy Policy describes how Larshield ("we", "us", or "our") collects, uses, and shares your personal information. We are committed to complying with global data protection laws including the GDPR, CCPA, and India\'s DPDP Act.',
|
| 44 |
sections: [
|
|
@@ -73,7 +71,6 @@ export const LEGAL_POLICIES = {
|
|
| 73 |
id: 'aup',
|
| 74 |
title: 'Acceptable Use Policy',
|
| 75 |
subtitle: '(Rules of Engagement)',
|
| 76 |
-
icon: 'rule',
|
| 77 |
effectiveDate: 'August 15, 2026',
|
| 78 |
intro: 'This Acceptable Use Policy (AUP) sets the rules of engagement for utilizing the Larshield platform. Violating this policy will result in immediate account termination and potential legal referral.',
|
| 79 |
sections: [
|
|
@@ -99,7 +96,6 @@ export const LEGAL_POLICIES = {
|
|
| 99 |
id: 'dpa',
|
| 100 |
title: 'Data Processing Agreement',
|
| 101 |
subtitle: '(DPA)',
|
| 102 |
-
icon: 'database',
|
| 103 |
effectiveDate: 'August 15, 2026',
|
| 104 |
intro: 'This DPA forms part of the Terms of Service. It outlines our responsibilities when processing Personal Data on behalf of our enterprise customers as a "Data Processor" under the GDPR and equivalent laws.',
|
| 105 |
sections: [
|
|
@@ -123,7 +119,6 @@ export const LEGAL_POLICIES = {
|
|
| 123 |
vdp: {
|
| 124 |
id: 'vdp',
|
| 125 |
title: 'Vulnerability Disclosure Policy',
|
| 126 |
-
icon: 'bug_report',
|
| 127 |
effectiveDate: 'August 15, 2026',
|
| 128 |
intro: 'Larshield is committed to ensuring the security of our platform. We welcome and support the efforts of the independent security research community to help us improve.',
|
| 129 |
sections: [
|
|
@@ -160,17 +155,12 @@ export const LegalPage = () => {
|
|
| 160 |
const { policyId } = useParams();
|
| 161 |
const navigate = useNavigate();
|
| 162 |
|
| 163 |
-
// Normalize policy key (e.g. 'tos' -> 'terms')
|
| 164 |
let currentKey = (policyId || 'terms').toLowerCase();
|
| 165 |
if (currentKey === 'tos') currentKey = 'terms';
|
| 166 |
if (!LEGAL_POLICIES[currentKey]) currentKey = 'terms';
|
| 167 |
|
| 168 |
const currentPolicy = LEGAL_POLICIES[currentKey];
|
| 169 |
|
| 170 |
-
const handleTabChange = (key) => {
|
| 171 |
-
navigate(`/legal/${key}`);
|
| 172 |
-
};
|
| 173 |
-
|
| 174 |
const navList = [
|
| 175 |
{ key: 'terms', label: 'Terms of Service', icon: 'description' },
|
| 176 |
{ key: 'privacy', label: 'Privacy Policy', icon: 'verified_user' },
|
|
@@ -192,7 +182,7 @@ export const LegalPage = () => {
|
|
| 192 |
return (
|
| 193 |
<button
|
| 194 |
key={item.key}
|
| 195 |
-
onClick={() =>
|
| 196 |
className={`w-full text-left px-md py-sm rounded-lg flex items-center gap-sm transition-all border-0 cursor-pointer text-body-md ${
|
| 197 |
isActive
|
| 198 |
? 'bg-primary/10 text-primary font-bold border-l-4 border-primary'
|
|
|
|
| 5 |
terms: {
|
| 6 |
id: 'terms',
|
| 7 |
title: 'Terms of Service',
|
|
|
|
| 8 |
effectiveDate: 'August 15, 2026',
|
| 9 |
sections: [
|
| 10 |
{
|
|
|
|
| 37 |
privacy: {
|
| 38 |
id: 'privacy',
|
| 39 |
title: 'Privacy Policy',
|
|
|
|
| 40 |
effectiveDate: 'August 15, 2026',
|
| 41 |
intro: 'This Privacy Policy describes how Larshield ("we", "us", or "our") collects, uses, and shares your personal information. We are committed to complying with global data protection laws including the GDPR, CCPA, and India\'s DPDP Act.',
|
| 42 |
sections: [
|
|
|
|
| 71 |
id: 'aup',
|
| 72 |
title: 'Acceptable Use Policy',
|
| 73 |
subtitle: '(Rules of Engagement)',
|
|
|
|
| 74 |
effectiveDate: 'August 15, 2026',
|
| 75 |
intro: 'This Acceptable Use Policy (AUP) sets the rules of engagement for utilizing the Larshield platform. Violating this policy will result in immediate account termination and potential legal referral.',
|
| 76 |
sections: [
|
|
|
|
| 96 |
id: 'dpa',
|
| 97 |
title: 'Data Processing Agreement',
|
| 98 |
subtitle: '(DPA)',
|
|
|
|
| 99 |
effectiveDate: 'August 15, 2026',
|
| 100 |
intro: 'This DPA forms part of the Terms of Service. It outlines our responsibilities when processing Personal Data on behalf of our enterprise customers as a "Data Processor" under the GDPR and equivalent laws.',
|
| 101 |
sections: [
|
|
|
|
| 119 |
vdp: {
|
| 120 |
id: 'vdp',
|
| 121 |
title: 'Vulnerability Disclosure Policy',
|
|
|
|
| 122 |
effectiveDate: 'August 15, 2026',
|
| 123 |
intro: 'Larshield is committed to ensuring the security of our platform. We welcome and support the efforts of the independent security research community to help us improve.',
|
| 124 |
sections: [
|
|
|
|
| 155 |
const { policyId } = useParams();
|
| 156 |
const navigate = useNavigate();
|
| 157 |
|
|
|
|
| 158 |
let currentKey = (policyId || 'terms').toLowerCase();
|
| 159 |
if (currentKey === 'tos') currentKey = 'terms';
|
| 160 |
if (!LEGAL_POLICIES[currentKey]) currentKey = 'terms';
|
| 161 |
|
| 162 |
const currentPolicy = LEGAL_POLICIES[currentKey];
|
| 163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
const navList = [
|
| 165 |
{ key: 'terms', label: 'Terms of Service', icon: 'description' },
|
| 166 |
{ key: 'privacy', label: 'Privacy Policy', icon: 'verified_user' },
|
|
|
|
| 182 |
return (
|
| 183 |
<button
|
| 184 |
key={item.key}
|
| 185 |
+
onClick={() => navigate(`/legal/${item.key}`)}
|
| 186 |
className={`w-full text-left px-md py-sm rounded-lg flex items-center gap-sm transition-all border-0 cursor-pointer text-body-md ${
|
| 187 |
isActive
|
| 188 |
? 'bg-primary/10 text-primary font-bold border-l-4 border-primary'
|