/* 隐私政策网页版（应用商店审核专用，独立维护） */

:root {
    --bg-primary: #f2f2f7;
    --ui-card: #ffffff;
    --ui-text-1: #1c1c1e;
    --ui-text-2: #636366;
    --ui-border: rgba(60, 60, 67, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #000000;
        --ui-card: #1c1c1e;
        --ui-text-1: #f5f5f7;
        --ui-text-2: #98989d;
        --ui-border: rgba(255, 255, 255, 0.07);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--ui-text-1);
    line-height: 1.65;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

.pp-page {
    max-width: 720px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.pp-header {
    padding: calc(env(safe-area-inset-top, 0px) + 24px) 18px 8px;
    text-align: center;
}

.pp-brand {
    font-size: 0.8125rem;
    color: var(--ui-text-2);
    margin-bottom: 6px;
}

.pp-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pp-main {
    flex: 1;
    padding: 0 18px calc(env(safe-area-inset-bottom, 0px) + 28px);
}

.pp-card {
    background: var(--ui-card);
    border-radius: 14px;
    padding: 20px 18px;
    border: 1px solid var(--ui-border);
}

.pp-section {
    margin-bottom: 20px;
}

.pp-section:last-child {
    margin-bottom: 0;
}

.pp-section h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ui-text-1);
}

.pp-section p {
    font-size: 0.9rem;
    color: var(--ui-text-2);
    margin-bottom: 10px;
    text-align: justify;
    word-break: break-word;
}

.pp-section p:last-child {
    margin-bottom: 0;
}

.pp-section p a,
.pp-section p a:link,
.pp-section p a:visited {
    color: #007aff;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}

@media (prefers-color-scheme: dark) {
    .pp-section p a,
    .pp-section p a:link,
    .pp-section p a:visited {
        color: #0a84ff;
    }
}

.pp-section p a:active {
    opacity: 0.7;
}

.pp-contact-email-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.pp-email-copy {
    font: inherit;
    font-size: 0.9rem;
    padding: 0;
    border: none;
    background: none;
    color: #007aff;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    -webkit-tap-highlight-color: transparent;
    word-break: break-all;
    text-align: left;
}

.pp-email-copy:active {
    opacity: 0.7;
}

@media (prefers-color-scheme: dark) {
    .pp-email-copy {
        color: #0a84ff;
    }
}

.pp-copy-toast {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    transform: translateX(-50%);
    z-index: 100100;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.8125rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.78);
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}

.pp-footer-meta {
    margin-top: 16px;
    text-align: center;
    font-size: 0.6875rem;
    line-height: 1.55;
    color: var(--ui-text-2);
}

@media (max-width: 360px) {
    .pp-main {
        padding-left: 14px;
        padding-right: 14px;
    }
}
