/* ===========================================
   隐私政策 — Ledger Warm
   顶部横向 step 导航 + 单栏正文
   =========================================== */

body.docs-theme main {
    background: var(--docs-bg);
    min-height: calc(100vh - var(--nav-height) - 8px);
}

body.docs-theme footer {
    background: var(--canvas-alt);
    border-top-color: var(--docs-border);
}

body.docs-theme .footer-social-link {
    background: var(--docs-surface);
    border-color: var(--docs-border);
}

body.docs-theme .footer-social-link:hover {
    background: var(--docs-accent-dim);
    color: var(--docs-accent);
}

/* —— Hero —— */
.privacy-hero {
    padding: 48px 0 0;
    background: linear-gradient(180deg, var(--docs-surface) 0%, var(--docs-bg) 100%);
    border-bottom: 1px solid var(--docs-border);
}

.privacy-hero--docs {
    padding: 48px 0 0;
}

.privacy-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.privacy-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding-bottom: 28px;
}

.privacy-kicker {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--docs-accent);
    margin-bottom: 8px;
}

.privacy-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--docs-heading);
    letter-spacing: -0.02em;
}

.privacy-lead {
    font-size: 15px;
    line-height: var(--docs-line-height);
    color: var(--docs-text-muted);
    margin: 0;
    max-width: 58ch;
}

.privacy-meta-card {
    background: var(--docs-surface);
    border: 1px solid var(--docs-border);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    white-space: nowrap;
}

.privacy-meta-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--docs-text-subtle);
    margin-bottom: 4px;
}

.privacy-meta-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--docs-heading);
}

/* —— 横向 step 导航 —— */
.privacy-step-nav {
    padding: 0 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.privacy-step-nav::-webkit-scrollbar {
    display: none;
}

.privacy-step-list {
    display: flex;
    align-items: stretch;
    gap: 0;
    list-style: none;
    min-width: min-content;
    border: 1px solid var(--docs-border);
    border-radius: var(--radius-lg);
    background: var(--docs-surface);
    overflow: hidden;
}

.privacy-step-list li {
    flex: 0 0 auto;
}

.privacy-step-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    min-width: 88px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--docs-text-muted);
    text-decoration: none;
    border-right: 1px solid var(--docs-border);
    transition: background var(--transition-fast), color var(--transition-fast);
    text-align: center;
}

.privacy-step-list li:last-child a {
    border-right: none;
}

.privacy-step-list a:hover {
    background: var(--docs-accent-dim);
    color: var(--docs-accent);
}

.privacy-step-list a.active {
    background: var(--docs-accent-dim);
    color: var(--docs-accent);
    font-weight: 600;
}

.privacy-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--docs-code-bg);
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 500;
    color: var(--docs-text-subtle);
}

.privacy-step-list a.active .privacy-step-num,
.privacy-step-list a:hover .privacy-step-num {
    background: var(--docs-accent);
    color: var(--on-accent);
}

/* —— 单栏正文 —— */
.privacy-content-section {
    padding: 36px 0 80px;
    background: var(--docs-bg);
}

.privacy-layout {
    max-width: var(--docs-content-max);
    margin: 0 auto;
}

.privacy-document {
    background: transparent;
    padding: 0;
}

.doc-section {
    margin-bottom: 40px;
    padding-bottom: 36px;
    border-bottom: 1px dashed var(--docs-border);
    scroll-margin-top: calc(var(--nav-height) + 80px);
}

.doc-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.doc-intro {
    font-size: 15px;
    line-height: var(--docs-line-height);
    color: var(--docs-text);
    margin-bottom: 14px;
}

.doc-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--docs-heading);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--docs-border);
}

.doc-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--docs-accent-dim);
    border-radius: var(--radius-sm);
    font-family: var(--font-code);
    font-size: 13px;
    font-weight: 500;
    color: var(--docs-accent);
    flex-shrink: 0;
}

.doc-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--docs-heading);
    margin: 20px 0 10px;
}

.doc-text {
    font-size: 15px;
    line-height: var(--docs-line-height);
    color: var(--docs-text);
    margin-bottom: 12px;
}

.doc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    padding-left: 0;
}

.doc-list li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    line-height: var(--docs-line-height);
    color: var(--docs-text);
}

.doc-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--docs-accent);
    opacity: 0.75;
}

.contact-info {
    background: var(--docs-surface);
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--docs-border);
    border-left: 3px solid var(--docs-accent);
    margin: 20px 0;
}

.contact-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.55;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-weight: 600;
    color: var(--docs-heading);
}

.contact-value {
    color: var(--docs-text);
}

.doc-final {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--docs-border);
    text-align: center;
    font-weight: 500;
    color: var(--docs-text-muted);
}

@media (max-width: 900px) {
    .privacy-hero-inner {
        grid-template-columns: 1fr;
    }

    .privacy-meta-card {
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .privacy-hero {
        padding: 36px 0 0;
    }

    .doc-title {
        font-size: 1.2rem;
    }

    .contact-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .privacy-step-list a {
        padding: 10px 12px;
        min-width: 72px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .doc-section {
        margin-bottom: 32px;
        padding-bottom: 28px;
    }

    .doc-text,
    .doc-intro {
        font-size: 14px;
    }
}
