/* ================================================================
   AXIOM · css/pages/privacy.css — 由 privacy.php 内联 <style> 搬移而来（v4.0.0 单源化）
   加载方式: 对应 PHP 页 $pageCss 按页加载（原内联块零 PHP 插值，安全搬移）
   ================================================================ */

.legal-page {
    padding: 50px 0 80px;
    min-height: calc(100vh - var(--nav-height) - 250px);
    position: relative;
}
.legal-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse at center, rgba(245, 179, 66, 0.04) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.legal-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* 豪华卷轴框体 - 毛玻璃 + 金色装饰 */
.legal-frame {
    position: relative;
    background: rgba(18, 19, 26, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl, 20px);
    padding: 48px 56px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.legal-frame:hover {
    border-color: rgba(245, 179, 66, 0.18);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.75),
        0 0 40px rgba(245, 179, 66, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* 顶部金色光带 */
.legal-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 179, 66, 0.5), transparent);
    pointer-events: none;
}

/* 四角金色装饰 - 卷轴风格 */
/* v32.9 2026-09-18 四角金属浮雕角标：尺寸加大 + 投影营造物理悬浮感 */
.legal-frame-corner {
    position: absolute;
    width: 72px;
    height: 72px;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
    transition: filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.legal-frame-corner svg {
    width: 100%;
    height: 100%;
    display: block;
}
.legal-frame-corner.tl { top: -2px; left: -2px; }
.legal-frame-corner.tr { top: -2px; right: -2px; transform: scaleX(-1); }
.legal-frame-corner.bl { bottom: -2px; left: -2px; transform: scaleY(-1); }
.legal-frame-corner.br { bottom: -2px; right: -2px; transform: scale(-1); }
.legal-frame:hover .legal-frame-corner {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 6px rgba(245, 179, 66, 0.08));
}

/* 卷轴装饰分隔 */
.legal-frame-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 0 36px 0;
}
.legal-frame-divider-line {
    flex: 1;
    max-width: 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 179, 66, 0.35), transparent);
    position: relative;
}
.legal-frame-divider-line::after {
    content: '';
    position: absolute;
    top: -2px;
    width: 5px;
    height: 5px;
    background: #F5B342;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(245, 179, 66, 0.6);
}
.legal-frame-divider-line:not(.right)::after {
    right: 0;
}
.legal-frame-divider-line.right::after {
    left: 0;
}
.legal-frame-divider-line.right {
    background: linear-gradient(90deg, rgba(245, 179, 66, 0.35), transparent);
}
.legal-frame-divider-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px rgba(245, 179, 66, 0.5));
    animation: iconGlow 3s ease-in-out infinite;
}
@keyframes iconGlow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(245, 179, 66, 0.4)); }
    50% { filter: drop-shadow(0 0 12px rgba(245, 179, 66, 0.7)); }
}

/* 章节标题金色调 */
.legal-section h2 {
    position: relative;
    border-bottom-color: rgba(245, 179, 66, 0.12) !important;
}
.legal-section h2 .sec-num {
    background: linear-gradient(135deg, rgba(245,179,66,0.12), rgba(245,179,66,0.04)) !important;
    border-color: rgba(245, 179, 66, 0.3) !important;
    color: #F5B342 !important;
}
.legal-highlight {
    background: rgba(245, 179, 66, 0.04) !important;
    border-left-color: rgba(245, 179, 66, 0.5) !important;
    backdrop-filter: blur(4px);
}
.legal-highlight strong {
    color: #F5B342 !important;
}

.legal-hero {
    text-align: center;
    margin-bottom: 48px;
}
.legal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(245, 179, 66, 0.1);
    border: 1px solid rgba(245, 179, 66, 0.25);
    border-radius: 100px;
    font-size: 0.75rem;
    color: #F5B342;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.legal-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #F5B342);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px 0;
    letter-spacing: 1px;
}
.legal-hero p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.legal-hero-updated {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
}
.legal-hero-updated strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.legal-toc {
    background: rgba(245, 179, 66, 0.03);
    border: 1px solid rgba(245, 179, 66, 0.1);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 40px;
}
.legal-toc-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #F5B342;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.legal-toc-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #F5B342, #d4942f);
    border-radius: 2px;
}
.legal-toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 24px;
}
.legal-toc li {
    counter-increment: toc-counter;
    margin-bottom: 8px;
    break-inside: avoid;
}
.legal-toc li::before {
    content: counter(toc-counter, decimal-leading-zero);
    color: #F5B342;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 10px;
    font-family: 'Inter', sans-serif;
}
.legal-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.legal-toc a:hover {
    color: #F5B342;
}

.legal-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}
.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(93, 173, 226, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
}
.legal-section h2 .sec-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(245,179,66,0.2), rgba(245,179,66,0.05));
    border: 1px solid rgba(245, 179, 66, 0.3);
    border-radius: 8px;
    font-size: 0.75rem;
    color: #F5B342;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    flex-shrink: 0;
}
.legal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 10px 0;
}
.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 12px 0;
    font-size: 0.9rem;
}
.legal-section ul,
.legal-section ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 12px 0;
    padding-left: 22px;
    font-size: 0.9rem;
}
.legal-section li {
    margin-bottom: 6px;
}
.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}
.legal-highlight {
    background: rgba(245, 179, 66, 0.05);
    border-left: 3px solid #F5B342;
    padding: 14px 20px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    backdrop-filter: blur(4px);
}
.legal-highlight strong {
    color: #F5B342;
}

/* 数据权利卡片 */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}
.right-card {
    background: rgba(245, 179, 66, 0.04);
    border: 1px solid rgba(245, 179, 66, 0.15);
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.3s;
}
.right-card:hover {
    border-color: rgba(245, 179, 66, 0.35);
    background: rgba(245, 179, 66, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 179, 66, 0.08);
}
.right-card-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 4px rgba(245, 179, 66, 0.3));
}
.right-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px 0;
}
.right-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Cookie 分类表格 */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.85rem;
}
.cookie-table th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(245, 179, 66, 0.08);
    color: #F5B342;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(245, 179, 66, 0.2);
}
.cookie-table td {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}
.cookie-table tr:last-child td {
    border-bottom: none;
}
.cookie-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.legal-back-top {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}
.legal-back-top a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.legal-back-top a:hover {
    color: #F5B342;
}

@media (max-width: 768px) {
    .legal-page { padding: 30px 0 50px; }
    .legal-container { padding: 0 16px; }
    .legal-frame {
        padding: 36px 24px 30px;
        border-radius: 16px;
    }
    .legal-frame::before {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
    /* v32.9 角标响应式尺寸升级 */
    .legal-frame-corner {
        width: 44px;
        height: 44px;
    }
    .legal-frame-corner.tl { top: -1px; left: -1px; }
    .legal-frame-corner.tr { top: -1px; right: -1px; }
    .legal-frame-corner.bl { bottom: -1px; left: -1px; }
    .legal-frame-corner.br { bottom: -1px; right: -1px; }
    .legal-hero h1 { font-size: 1.8rem; }
    .legal-toc { padding: 20px; }
    .legal-toc ol { columns: 1; }
    .legal-section h2 { font-size: 1.1rem; }
    .rights-grid { grid-template-columns: 1fr; }
    .cookie-table { font-size: 0.78rem; }
    .cookie-table th, .cookie-table td { padding: 10px 12px; }
    .legal-frame-divider-line { max-width: 60px; }
}

@media (max-width: 480px) {
    .legal-page { padding: 20px 0 40px; }
    .legal-container { padding: 0 12px; }
    .legal-frame {
        padding: 28px 18px 24px;
        border-radius: 12px;
    }
    .legal-frame::before {
        top: 6px;
        left: 6px;
        right: 6px;
        bottom: 6px;
    }
    /* v32.9 角标响应式尺寸升级 */
    .legal-frame-corner {
        width: 34px;
        height: 34px;
    }
    .legal-frame-corner.tl { top: -1px; left: -1px; }
    .legal-frame-corner.tr { top: -1px; right: -1px; }
    .legal-frame-corner.bl { bottom: -1px; left: -1px; }
    .legal-frame-corner.br { bottom: -1px; right: -1px; }
    .legal-hero {
        padding: 10px 0 24px;
    }
    .legal-hero-badge {
        font-size: 0.7rem;
        padding: 5px 14px;
        margin-bottom: 14px;
    }
    .legal-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    .legal-hero p {
        font-size: 0.82rem;
        line-height: 1.6;
    }
    .legal-hero-updated {
        font-size: 0.75rem;
        margin-top: 14px;
    }
    .legal-frame-divider {
        margin: 20px 0;
    }
    .legal-frame-divider-icon {
        font-size: 0.9rem;
    }
    .legal-frame-divider-line {
        max-width: 40px;
    }
    .legal-toc {
        padding: 16px;
        margin-bottom: 28px;
    }
    .legal-toc-title {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    .legal-toc ol {
        font-size: 0.82rem;
        gap: 8px;
        padding-left: 20px;
    }
    .legal-section {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }
    .legal-section h2 {
        font-size: 1rem;
        gap: 10px;
        margin-bottom: 14px;
    }
    .sec-num {
        font-size: 0.75rem;
        min-width: 28px;
        padding: 3px 8px;
    }
    .legal-section p,
    .legal-section li {
        font-size: 0.85rem;
        line-height: 1.75;
    }
    .legal-highlight {
        padding: 14px 16px;
        font-size: 0.82rem;
        margin: 16px 0;
        border-radius: 8px;
    }
    .cookie-table {
        font-size: 0.72rem;
    }
    .cookie-table th, .cookie-table td {
        padding: 8px 10px;
    }
    .rights-grid {
        gap: 12px;
    }
    .legal-back-top {
        margin-top: 28px;
        padding-top: 18px;
    }
}
