/* 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: 16px;
    gap: 12px;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007AFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.back-btn svg {
    color: #FFFFFF;
    stroke: #FFFFFF;
}

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

.privacy-title {
    font-size: 28px;
    font-weight: 700;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #000000;
    line-height: 23px;
    margin: 0;
    margin-left: auto;
    text-align: right;
    position: relative;
    display: inline-block;
}

.privacy-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3A59FF;
}

/* Update Date */
.update-date {
    text-align: center;
    font-size: 14px;
    color: #8E8E93;
    padding: 8px 16px 24px;
}

/* Privacy Content */
.privacy-content {
    padding: 0 16px 32px;
    line-height: 1.8;
    color: #000000;
    font-size: 15px;
}

.privacy-content p {
    margin-bottom: 16px;
    text-align: justify;
}

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

.privacy-content strong {
    font-weight: 600;
    color: #000000;
}

.privacy-content h2 {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-top: 24px;
    margin-bottom: 12px;
}

.privacy-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-top: 20px;
    margin-bottom: 10px;
}

.privacy-content ul,
.privacy-content ol {
    margin-left: 20px;
    margin-bottom: 16px;
}

.privacy-content li {
    margin-bottom: 8px;
}

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

.privacy-content table td {
    padding: 8px 12px;
    border: 1px solid #E5E5EA;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    vertical-align: top;
    font-size: 14px;
    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: 24px;
    }
    
    .privacy-content {
        font-size: 14px;
    }
}

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

