:root {
    --legal-ink: #152238;
    --legal-muted: #5b687a;
    --legal-line: #dce4ef;
    --legal-blue: #155eef;
    --legal-blue-dark: #0b3f9c;
    --legal-blue-soft: #eef5ff;
    --legal-warm: #fff8e8;
    --legal-warm-line: #f2d28d;
    --legal-surface: #ffffff;
    --legal-bg: #f5f7fb;
    --legal-shadow: 0 18px 48px rgba(23, 42, 77, 0.09);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    color: var(--legal-ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(21, 94, 239, 0.1), transparent 28rem),
        linear-gradient(180deg, #fbfdff 0, var(--legal-bg) 35rem);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.78;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--legal-blue); }

a:hover,
a:focus-visible { color: var(--legal-blue-dark); }

.legal-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(220, 228, 239, 0.88);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
}

.legal-topbar-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--legal-ink);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.legal-brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, #2e78ff, #1047b8);
    box-shadow: 0 8px 20px rgba(21, 94, 239, 0.22);
}

.legal-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.legal-nav a {
    padding: 8px 12px;
    border-radius: 10px;
    color: #45556c;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.legal-nav a[aria-current="page"] {
    color: var(--legal-blue);
    background: var(--legal-blue-soft);
}

.legal-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.legal-hero {
    padding: 70px 0 46px;
}

.legal-eyebrow {
    margin: 0 0 10px;
    color: var(--legal-blue);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-hero h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.legal-lead {
    max-width: 790px;
    margin: 22px 0 0;
    color: var(--legal-muted);
    font-size: clamp(1rem, 2vw, 1.16rem);
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 24px;
    color: #526176;
    font-size: 0.9rem;
}

.legal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legal-meta span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #49a56a;
    box-shadow: 0 0 0 4px rgba(73, 165, 106, 0.12);
}

.legal-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 42px;
}

.legal-highlight {
    min-height: 154px;
    padding: 22px;
    border: 1px solid rgba(220, 228, 239, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 32px rgba(23, 42, 77, 0.055);
}

.legal-highlight strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.legal-highlight p {
    margin: 0;
    color: var(--legal-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.legal-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 34px;
    padding-bottom: 80px;
}

.legal-toc {
    position: sticky;
    top: 92px;
    padding: 20px;
    border: 1px solid var(--legal-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.legal-toc-title {
    margin: 0 0 11px;
    color: #263750;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.legal-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: legal-section;
}

.legal-toc li { counter-increment: legal-section; }

.legal-toc a {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    padding: 5px 0;
    color: #526176;
    font-size: 0.84rem;
    line-height: 1.4;
    text-decoration: none;
}

.legal-toc a::before {
    content: counter(legal-section, decimal-leading-zero);
    color: #8a98aa;
    font-size: 0.7rem;
    font-weight: 800;
}

.legal-toc a:hover,
.legal-toc a:focus-visible { color: var(--legal-blue); }

.legal-document {
    min-width: 0;
    padding: clamp(26px, 4vw, 54px);
    border: 1px solid var(--legal-line);
    border-radius: 24px;
    background: var(--legal-surface);
    box-shadow: var(--legal-shadow);
}

.legal-note {
    margin: 0 0 34px;
    padding: 18px 20px;
    border: 1px solid #c9dcff;
    border-left: 4px solid var(--legal-blue);
    border-radius: 12px;
    background: var(--legal-blue-soft);
    color: #29405f;
}

.legal-note.warning {
    border-color: var(--legal-warm-line);
    border-left-color: #c98312;
    background: var(--legal-warm);
}

.legal-note strong { color: var(--legal-ink); }

.legal-section {
    padding: 8px 0 30px;
    border-bottom: 1px solid #edf1f6;
}

.legal-section + .legal-section { padding-top: 38px; }

.legal-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-section h2 {
    margin: 0 0 18px;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.legal-section h3 {
    margin: 24px 0 10px;
    font-size: 1.02rem;
}

.legal-section p { margin: 0 0 13px; }

.legal-section ul,
.legal-section ol {
    margin: 12px 0 16px;
    padding-left: 1.35rem;
}

.legal-section li { margin: 7px 0; }

.legal-section strong { color: #1c2c45; }

.legal-table-wrap {
    width: 100%;
    margin: 18px 0;
    overflow-x: auto;
    border: 1px solid var(--legal-line);
    border-radius: 14px;
}

.legal-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.88rem;
    line-height: 1.55;
}

.legal-table th,
.legal-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e9eef5;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    color: #334763;
    background: #f5f8fc;
    font-weight: 800;
    white-space: nowrap;
}

.legal-table tr:last-child td { border-bottom: 0; }

.legal-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    color: #9b4f09;
    background: #fff1d4;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.legal-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.legal-contact div {
    padding: 15px 16px;
    border: 1px solid var(--legal-line);
    border-radius: 12px;
    background: #fafcff;
}

.legal-contact span {
    display: block;
    margin-bottom: 3px;
    color: #718096;
    font-size: 0.76rem;
    font-weight: 800;
}

.legal-contact strong,
.legal-contact a {
    overflow-wrap: anywhere;
    font-size: 0.92rem;
}

.legal-footer {
    padding: 26px 16px 34px;
    color: #66758a;
    text-align: center;
    font-size: 0.84rem;
}

.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-bottom: 8px;
}

.legal-footer a {
    color: #526176;
    font-weight: 750;
    text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a:focus-visible { color: var(--legal-blue); }

@media (max-width: 880px) {
    .legal-highlights { grid-template-columns: 1fr; }
    .legal-highlight { min-height: 0; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
    .legal-toc ol { columns: 2; column-gap: 24px; }
    .legal-toc li { break-inside: avoid; }
}

@media (max-width: 620px) {
    .legal-topbar-inner { width: min(100% - 20px, 1180px); }
    .legal-brand span:last-child { display: none; }
    .legal-nav { gap: 2px; }
    .legal-nav a { padding: 7px 8px; font-size: 0.8rem; }
    .legal-wrap { width: min(100% - 20px, 1180px); }
    .legal-hero { padding: 44px 4px 32px; }
    .legal-hero h1 { font-size: 2.55rem; }
    .legal-highlights { margin-bottom: 24px; }
    .legal-layout { gap: 20px; padding-bottom: 40px; }
    .legal-toc { padding: 17px; }
    .legal-toc ol { columns: 1; }
    .legal-document { padding: 24px 19px; border-radius: 18px; }
    .legal-contact { grid-template-columns: 1fr; }
}

@media print {
    body { background: #fff; color: #000; font-size: 10.5pt; }
    .legal-topbar,
    .legal-toc,
    .legal-highlights,
    .legal-footer { display: none !important; }
    .legal-wrap { width: 100%; }
    .legal-hero { padding: 0 0 24px; }
    .legal-hero h1 { font-size: 28pt; }
    .legal-layout { display: block; padding: 0; }
    .legal-document { padding: 0; border: 0; box-shadow: none; }
    .legal-section { break-inside: avoid; }
    .legal-table-wrap { overflow: visible; }
    .legal-table { min-width: 0; font-size: 8.5pt; }
    a { color: inherit; text-decoration: none; }
}
