/* Privacy & Terms Pages - Apple Style Design */

/* CSS Variables */
:root {
    --privacy-bg: #f5f5f7;
    --privacy-container-bg: #ffffff;
    --privacy-text: #1d1d1f;
    --privacy-text-secondary: #86868b;
    --privacy-border: #d2d2d7;
    --privacy-link: #0071e3;
    --privacy-link-hover: #0077ed;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --privacy-bg: #000000;
        --privacy-container-bg: #1c1c1e;
        --privacy-text: #f5f5f7;
        --privacy-text-secondary: #98989d;
        --privacy-border: #38383a;
        --privacy-link: #0a84ff;
        --privacy-link-hover: #409cff;
    }
}

/* 通用字体样式 */
.privacy-page-wrapper,
.privacy-page-wrapper * {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.privacy-page-wrapper {
    min-height: 100vh;
    background: var(--privacy-bg);
    padding: 80px 20px;
}

.privacy-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: var(--privacy-container-bg);
    border-radius: 18px;
    padding: 64px 56px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(0, 0, 0, 0.05);
}

.privacy-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--privacy-border);
}

.privacy-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 600;
    color: var(--privacy-text);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.privacy-updated {
    font-size: 0.9375rem;
    color: var(--privacy-text-secondary);
    margin: 0;
}

.privacy-content {
    line-height: 1.8;
    color: var(--privacy-text);
}

/* 为从数据库加载的内容添加样式支持 */
.privacy-content > * {
    margin-bottom: 16px;
}

.privacy-content > *:last-child {
    margin-bottom: 0;
}

.privacy-content h1,
.privacy-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--privacy-text);
    margin: 40px 0 16px 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.privacy-content h1:first-child,
.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--privacy-text);
    margin: 24px 0 12px 0;
    line-height: 1.4;
}

.privacy-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--privacy-text);
    margin: 20px 0 10px 0;
    line-height: 1.4;
}

.privacy-content p {
    font-size: 1rem;
    color: var(--privacy-text);
    margin: 0 0 16px 0;
    line-height: 1.8;
}

.privacy-content ul,
.privacy-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.privacy-content li {
    font-size: 1rem;
    color: var(--privacy-text);
    margin-bottom: 12px;
    line-height: 1.8;
}

.privacy-content a {
    color: var(--privacy-link);
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.privacy-content a:hover {
    color: var(--privacy-link-hover);
    text-decoration: underline;
}

.privacy-content strong,
.privacy-content b {
    font-weight: 600;
}

.privacy-content em,
.privacy-content i {
    font-style: italic;
}

.privacy-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.privacy-content blockquote {
    margin: 16px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--privacy-border);
    background: var(--privacy-bg);
    border-radius: 4px;
    font-style: italic;
}

.privacy-content code {
    background: var(--privacy-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9em;
}

.privacy-content pre {
    background: var(--privacy-bg);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.privacy-content pre code {
    background: none;
    padding: 0;
}

.privacy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.privacy-content table th,
.privacy-content table td {
    padding: 12px;
    border: 1px solid var(--privacy-border);
    text-align: left;
}

.privacy-content table th {
    background: var(--privacy-bg);
    font-weight: 600;
}

.privacy-content hr {
    border: none;
    border-top: 1px solid var(--privacy-border);
    margin: 32px 0;
}

.privacy-section {
    margin-bottom: 32px;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--privacy-text);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.privacy-section p {
    font-size: 1rem;
    color: var(--privacy-text);
    margin: 0 0 16px 0;
    line-height: 1.8;
}

.privacy-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.privacy-section li {
    font-size: 1rem;
    color: var(--privacy-text);
    margin-bottom: 12px;
    line-height: 1.8;
}

.privacy-section a {
    color: var(--privacy-link);
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.privacy-section a:hover {
    color: var(--privacy-link-hover);
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 991.98px) and (min-width: 768px) {
    .privacy-page-wrapper {
        padding: 60px 24px;
    }

    .privacy-container {
        padding: 48px 40px;
    }
}

@media (max-width: 767.98px) {
    .privacy-page-wrapper {
        padding: 40px 16px;
    }

    .privacy-container {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .privacy-header {
        margin-bottom: 36px;
        padding-bottom: 24px;
    }

    .privacy-section {
        margin-bottom: 28px;
    }

    .privacy-section h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .privacy-page-wrapper {
        padding: 32px 12px;
    }

    .privacy-container {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .privacy-header {
        margin-bottom: 28px;
        padding-bottom: 20px;
    }

    .privacy-section {
        margin-bottom: 24px;
    }

    .privacy-section h2 {
        font-size: 1.125rem;
    }

    .privacy-section p,
    .privacy-section li {
        font-size: 0.9375rem;
    }

    .privacy-content h1,
    .privacy-content h2 {
        font-size: 1.25rem;
    }

    .privacy-content h3 {
        font-size: 1.0625rem;
    }

    .privacy-content p,
    .privacy-content li {
        font-size: 0.9375rem;
    }
}

