:root {
    color-scheme: light;
    --page-bg: #edf3fb;
    --page-accent: #2458d3;
    --page-accent-strong: #17398d;
    --text-primary: #162033;
    --text-secondary: #43506a;
    --text-muted: #6e7b93;
    --surface-main: rgba(255, 255, 255, 0.94);
    --border-soft: rgba(36, 88, 211, 0.14);
    --border-strong: rgba(36, 88, 211, 0.24);
    --shadow-soft: 0 24px 70px rgba(18, 35, 74, 0.12);
    --shadow-card: 0 12px 32px rgba(18, 35, 74, 0.08);
    --radius-outer: 28px;
    --radius-card: 18px;
    --radius-pill: 999px;
    --content-width: 1040px;
    --transition-base: 220ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 32px 18px 56px;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-primary);
    background:
        radial-gradient(circle at top left, rgba(73, 126, 255, 0.16), transparent 32%),
        radial-gradient(circle at top right, rgba(57, 154, 148, 0.12), transparent 28%),
        linear-gradient(180deg, #f6f9ff 0%, var(--page-bg) 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.54), transparent 45%),
        linear-gradient(315deg, rgba(214, 228, 255, 0.4), transparent 40%);
    z-index: -1;
}

body > .legal-shell {
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

body > .legal-shell > .legal-card {
    padding: 44px clamp(20px, 4.8vw, 52px) 52px;
    background: var(--surface-main);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-outer);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.legal-main-title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 3vw, 2.85rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: center;
    color: #0e1f46;
}

.legal-lead,
.legal-meta {
    margin: 0 0 12px;
    color: var(--page-accent-strong);
    font-weight: 600;
}

.legal-lead {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(219, 231, 255, 0.95), rgba(241, 246, 255, 0.92));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
}

.legal-article,
.legal-table-wrap {
    margin-top: 20px;
}

.legal-card p,
.legal-article p {
    margin: 0 0 14px;
    font-size: 0.98rem;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.legal-article a,
.legal-table a {
    color: var(--page-accent-strong);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    transition:
        color var(--transition-base),
        opacity var(--transition-base),
        box-shadow var(--transition-base),
        background-color var(--transition-base);
}

.legal-article a:hover,
.legal-table a:hover {
    color: var(--page-accent);
}

.legal-article a:focus-visible,
.legal-table a:focus-visible {
    outline: 3px solid rgba(36, 88, 211, 0.22);
    outline-offset: 3px;
    border-radius: 10px;
}

.legal-emphasis,
.legal-article b,
.legal-article strong,
.legal-table b,
.legal-table strong {
    color: var(--text-primary);
    font-weight: 700;
}

.legal-section-title {
    position: relative;
    margin: 30px 0 12px;
    padding: 0 0 12px 18px;
    font-size: clamp(1.2rem, 1.9vw, 1.5rem);
    font-weight: 700;
    line-height: 1.4;
    color: #0e1f46;
    border-bottom: 1px solid rgba(36, 88, 211, 0.14);
}

.legal-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.24em;
    width: 6px;
    height: 1.05em;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, var(--page-accent), #5e7fff);
}

.legal-shell--article .legal-meta {
    display: inline-flex;
    margin-right: 12px;
    padding: 8px 14px;
    font-size: 0.94rem;
    background: rgba(239, 245, 255, 0.96);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
}

.legal-shell--table .legal-lead {
    margin-bottom: 22px;
}

.legal-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    background: #ffffff;
}

.legal-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.legal-table thead {
    background: linear-gradient(180deg, #eef4ff 0%, #e2ebff 100%);
}

.legal-table tr {
    border-bottom: 1px solid rgba(36, 88, 211, 0.1);
}

.legal-table tbody tr:nth-child(even) {
    background: rgba(246, 249, 255, 0.82);
}

.legal-table th,
.legal-table td {
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: left;
    vertical-align: top;
    color: var(--text-secondary);
    border-right: 1px solid rgba(36, 88, 211, 0.08);
}

.legal-table th:last-child,
.legal-table td:last-child {
    border-right: 0;
}

.legal-table th {
    color: var(--text-primary);
    font-weight: 700;
}

.legal-table td:first-child,
.legal-table th:first-child {
    min-width: 140px;
}

.legal-table td:nth-child(2),
.legal-table th:nth-child(2) {
    min-width: 160px;
}

.legal-table td:nth-child(5),
.legal-table th:nth-child(5),
.legal-table td:nth-child(6),
.legal-table th:nth-child(6) {
    min-width: 220px;
}

@media (max-width: 760px) {
    body {
        padding: 18px 12px 36px;
        font-size: 15px;
    }

    body > .legal-shell > .legal-card {
        padding: 28px 16px 34px;
        border-radius: 22px;
    }

    .legal-main-title {
        letter-spacing: 0.02em;
    }

    .legal-lead,
    .legal-shell--article .legal-meta {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }

    .legal-section-title {
        padding-left: 14px;
        margin-top: 26px;
        font-size: 1.08rem;
    }

    .legal-table {
        min-width: 760px;
    }

    .legal-table th,
    .legal-table td {
        padding: 12px;
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    body {
        padding: 0;
        background: #ffffff;
    }

    body::before {
        display: none;
    }

    body > .legal-shell > .legal-card {
        padding: 0;
        border: 0;
        box-shadow: none;
        background: #ffffff;
    }

    .legal-table-wrap,
    .legal-lead,
    .legal-shell--article .legal-meta {
        box-shadow: none;
    }
}
