<template>
	<view class="legal-page">
		<view class="header">
			<view class="title">User Agreement</view>
			<view class="subtitle">Applicable to this service (Last updated: {{ effectiveDate }})</view>
		</view>

		<scroll-view class="content" scroll-y>
			<view class="h1">I. Introduction</view>
			<view class="p">Welcome to {{ brandName }} shared fan products and related services. This User Agreement (hereinafter referred to as "this Agreement") is entered into between you and {{ companyName }} ("we") regarding your use of {{ brandName }} mini program and shared fan rental services.</view>
			<view class="p">Before using {{ brandName }}, please carefully read and fully understand all contents of this Agreement, especially the terms highlighted in bold (including but not limited to liability limitations, dispute resolution, applicable law, protection of minors, etc.). By clicking "Login/Use" or actually using the service, you are deemed to have read and agreed to be bound by this Agreement.</view>

			<view class="h1">II. Account and Login</view>
			<view class="p">2.1 You can log in and use this service through WeChat authorization. To complete deposit-free rental and order settlement, you agree that we conduct credit assessment and post-order settlement based on WeChat Payment Score.</view>
			<view class="p">2.2 You should ensure that the information provided is true, accurate, and complete, and update it in a timely manner. Any service restrictions, order abnormalities, or losses caused by untrue information or failure to update in time shall be borne by you.</view>
			<view class="p">2.3 You shall be responsible for all activities under the account, properly keep the device and account credentials, and shall not lend, rent, or otherwise provide them to others.</view>

			<view class="h1">III. Rental and Usage Specifications</view>
			<view class="p">3.1 Rental process: Initiate rental in {{ brandName }} mini program → Pick up the fan at the device → Return it at the return point according to the instructions or through "Express Return" after use.</view>
			<view class="p">3.2 Usage specifications: Please use the device properly, avoid water ingress, dropping, unauthorized disassembly or modification; do not approach open flames and high-temperature environments; avoid outdoor use in rainy days; children should use under supervision.</view>
			<view class="p">3.3 Prohibited behaviors: Using the device for illegal or improper purposes; affecting the normal operation of the device or system in any way; circumventing billing or return processes through abnormal means.</view>

			<view class="h1">IV. Billing and Settlement (Including WeChat Payment Score)</view>
			<view class="p"><text class="bold">4.1 Billing rules</text>: Subject to the real-time billing rules displayed in the mini program, which may include duration billing, capped prices, service fees, etc. Charges will be based on this after order generation.</view>
			<view class="p"><text class="bold">4.2 WeChat Payment Score deposit-free</text>: If you activate and pass the credit assessment, you can enjoy deposit-free rental; if the assessment fails, pre-authorization or deposit may be required. Please refer to the page prompts for details.</view>
			<view class="p">4.3 Settlement and deduction: After the order ends, we will complete the settlement based on actual usage and platform rules, and deduct through WeChat Payment Score/WeChat Pay.</view>
			<view class="p">4.4 Exceptions and disputes: If you have any objection to billing or settlement, please submit it through "My-Customer Service" within 48 hours after order completion; overdue submissions may affect processing results.</view>

			<view class="h1">V. Device Return and Overdue Handling</view>
			<view class="p">5.1 Return method: Return at designated outlets according to mini program instructions, or send back through the "Express Return" function. Non-designated methods may lead to order abnormalities and additional fees.</view>
			<view class="p">5.2 Overdue handling: If not returned within the specified time, the system will continue billing or charge overdue fees according to rules. Long-term failure to return may result in compensation handling according to the agreement.</view>
			<view class="p">5.3 Acceptance and order completion: After return, the platform will conduct integrity inspection. The order can only be completed after inspection and fee settlement.</view>

			<view class="h1">VI. Violation, Damage and Compensation</view>
			<view class="p">6.1 Device damage and loss: If device damage or loss is caused by improper use, intentional damage, or failure to keep in accordance with specifications, you need to bear compensation liability according to the platform's published standards or actual repair/depreciation costs.</view>
			<view class="p">6.2 Cleaning and parts: Additional costs caused by human contamination, missing accessories, etc., will be charged to you based on actual costs.</view>
			<view class="p">6.3 Risk control: In case of suspected malicious arrears, fraud, etc., the platform may take measures such as freezing services, pursuing compensation, and protecting rights according to law.</view>

			<view class="h1">VII. User Behavior Standards</view>
			<view class="p">7.1 You promise to abide by laws, regulations and public order and good customs, not to publish or spread illegal or improper content, and not to interfere with or disrupt the normal operation of the platform and devices.</view>
			<view class="p">7.2 You shall not conduct reverse engineering, scraping, or unauthorized automated access to this mini program.</view>

			<view class="h1">VIII. Intellectual Property</view>
			<view class="p">8.1 {{ companyName }} and its affiliates enjoy corresponding intellectual property rights or legal authorization for trademarks, logos, interfaces, texts, images, codes, etc. in this mini program and services.</view>
			<view class="p">8.2 Without written permission, no one may use, copy, disseminate or adapt the above content in any way.</view>

			<view class="h1">IX. Disclaimer and Limitation of Liability</view>
			<view class="p"><text class="bold">9.1 Due to force majeure, network failures, third-party service stability and other reasons leading to service interruption or restriction, {{ companyName }} shall not be liable within the scope permitted by law, but will try to restore services.</text></view>
			<view class="p">9.2 You should be responsible for your own use. Any losses caused by your violation of this Agreement or improper storage and use of equipment shall be borne by you or compensated to relevant parties.</view>

			<view class="h1">X. Privacy and Personal Information Protection</view>
			<view class="p">10.1 We strictly handle your personal information in accordance with the Privacy Policy, including WeChat login information, mobile phone number (obtained after your authorization), device and order information, location and outlet information, etc.</view>
			<view class="p">10.2 For details, please refer to the Privacy Policy in this mini program.</view>

			<view class="h1">XI. Service Changes and Termination</view>
			<view class="p">11.1 We may make changes or terminate service content, functions or rules based on business adjustments, legal compliance or user experience optimization. Important changes will be notified through mini program announcements or in-app messages.</view>
			<view class="p">11.2 If you do not agree with the changes, you can stop using and apply for cancellation of relevant accounts/information (subject to laws, regulations and account settlement restrictions).</view>

			<view class="h1">XII. Protection of Minors</view>
			<view class="p">12.1 Guardians of minors should guide them to correctly understand and abide by this Agreement. Minors should use the service under supervision and avoid using equipment in dangerous environments.</view>

			<view class="h1">XIII. Notices and Contact</view>
			<view class="p">13.1 Contact method: Please contact us through "Support" in the mini program, and we will handle your questions or disputes as soon as possible.</view>

			<view class="h1">XIV. Applicable Law and Dispute Resolution</view>
			<view class="p">14.1 The conclusion, effectiveness, performance, interpretation and dispute resolution of this Agreement shall be governed by the laws of the People's Republic of China (excluding conflict of laws rules).</view>
			<view class="p">14.2 Disputes arising from this Agreement shall be resolved through friendly negotiation first; if negotiation fails, they shall be submitted to the people's court with jurisdiction in {{ disputeVenue }} for litigation settlement.</view>

			<view class="h1">XV. Supplementary Provisions</view>
			<view class="p">15.1 This Agreement shall take effect from {{ effectiveDate }} and remain valid for a long term, unless we publish another version update.</view>
			<view class="p">15.2 If any provision of the Agreement is deemed invalid or unenforceable, it shall not affect the validity and enforcement of other provisions.</view>
		</scroll-view>

		<view class="footer">If you have any questions about this Agreement, please contact our customer service.</view>
	</view>
</template>

<script setup>
	import { ref, onMounted } from 'vue'

	onMounted(() => {
		uni.setNavigationBarTitle({
			title: 'User Agreement'
		})
	})

	const brandName = 'Isidaya'
	const companyName = 'Shenzhen Lemu Zhiyun Technology Co., Ltd.'
	const effectiveDate = '2025-10-13'
	const disputeVenue = 'the location of the platform'
</script>

<style lang="scss" scoped>
	.legal-page {
		min-height: 100vh;
		background: #f8f8f8;
		padding: 24rpx 24rpx 40rpx;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;

		.header {
			margin-bottom: 16rpx;
			.title {
				font-size: 40rpx;
				font-weight: 600;
				color: #222;
				margin-bottom: 8rpx;
			}
			.subtitle {
				font-size: 24rpx;
				color: #888;
			}
		}

		.content {
			background: #fff;
			border-radius: 16rpx;
			padding: 16rpx 20rpx;
			flex: 1;
			min-height: 0;
			box-sizing: border-box;
			box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.04);
		}

		.h1 { font-size: 30rpx; font-weight: 600; color: #222; margin: 18rpx 0 12rpx; }
		.p { font-size: 26rpx; color: #444; line-height: 1.8; margin-bottom: 10rpx; }
		.bold { font-weight: 600; color: #222; }

		.footer {
			text-align: center;
			margin-top: 16rpx;
			font-size: 24rpx;
			color: #888;
		}
	}
</style>

