/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

/* Main Content */
.privacy-main {
    margin-top: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Navigation */
.privacy-nav {
    display: flex;
    align-items: center;
    padding: 7.25vw 0; /* 上下30px */
    gap: 12px;
}

.back-btn {
    width: 9.66vw;
    height: 9.66vw;
    border-radius: 50%;
    background-color: #3A59FF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    background-image: url('../img/icon_back_white.png');
    background-size: 3.86vw 3.86vw; /* 16*16 居中 */
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 7.25vw; /* 左间距30px */
}

.back-btn svg {
    display: none;
}

.back-btn:active {
    opacity: 0.7;
}

.privacy-title {
    font-size: 5.56vw; /* 23px */
    font-weight: 500; /* medium */
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #000000;
    line-height: 5.56vw; /* 23px */
    margin: 0 7.25vw 0 auto; /* 右边距30px */
    text-align: right;
    position: relative;
    display: inline-block;
}

.privacy-title::after {
    content: '';
    position: absolute;
    bottom: -2.42vw; /* 10px 间距 */
    left: 0;
    width: 100%;
    height: 0.72vw; /* 3px */
    background-color: #3A59FF;
    border-radius: 0.36vw; /* 胶囊矩形圆角 */
}

/* Update Date */
.update-date {
    font-size: 2.9vw; /* 12px */
    font-weight: 300; /* light */
    line-height: 2.9vw; /* 12px */
    color: #888;
    margin: 0 7.25vw; /* 左右30px */
    margin-top: 4.1vw; /* 约17px，配合标题横条总间距30px */
    margin-bottom: 5.8vw; /* 24px 距离正文 */
    height: 6.76vw; /* 28px */
    background: rgba(0, 0, 0, 0.02); /* #000 2% */
    border-radius: 0.72vw; /* 3px */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Privacy Content */
.privacy-content {
    padding: 0 7.25vw 7.73vw /* 左右30px 底部32px */;
    line-height: 1.8;
    color: #000000;
    font-size: 3.62vw;
}

.privacy-content p {
    margin-bottom: 3.86vw /* 原: 16px */;
    text-align: justify;
}

.privacy-content p:last-child {
    margin-bottom: 0;
}

.privacy-content h2 {
    font-size: 4.35vw;
    font-weight: 600;
    color: #000000;
    margin-top: 5.8vw /* 原: 24px */;
    margin-bottom: 2.9vw /* 原: 12px */;
}

.privacy-content h3 {
    font-size: 3.86vw;
    font-weight: 600;
    color: #000000;
    margin-top: 4.83vw /* 原: 20px */;
    margin-bottom: 2.42vw /* 原: 10px */;
}

.privacy-content ul,
.privacy-content ol {
    margin-left: 4.83vw /* 原: 20px */;
    margin-bottom: 3.86vw /* 原: 16px */;
}

.privacy-content li {
    margin-bottom: 1.93vw /* 原: 8px */;
}

/* Table Styles */
.privacy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 3.86vw 0 /* 原: 16px 0 */;
    table-layout: fixed;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.privacy-content table td {
    padding: 1.93vw 2.9vw /* 原: 8px 12px */;
    border: 0.24vw solid #E5E5EA;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    vertical-align: top;
    font-size: 3.38vw;
    line-height: 1.6;
}

.privacy-content table tr:first-child td {
    background-color: #F5F5F7;
    font-weight: 600;
}

/* Responsive */
@media screen and (max-width: 375px) {
    .privacy-title {
        font-size: 5.8vw;
    }
    
    .privacy-content {
        font-size: 3.38vw;
    }
}

/* Safe area for iOS */
@supports (padding: max(0px)) {
    .privacy-main {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

