:root {
    --ink: #2f2b3f;
    --muted: #766f83;
    --primary: #6954a6;
    --primary-deep: #4d3c82;
    --lavender: #ebe5f7;
    --paper: #fffdf9;
    --background: #f8f6f1;
    --line: rgba(74, 59, 110, .12);
    --shadow: 0 24px 60px rgba(62, 46, 91, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--background);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.site-shell::before,
.site-shell::after {
    position: absolute;
    z-index: -1;
    display: block;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.site-shell::before {
    top: -18rem;
    right: -13rem;
    background: rgba(218, 205, 245, .55);
}

.site-shell::after {
    top: 42rem;
    left: -24rem;
    background: rgba(235, 216, 194, .4);
}

.container {
    width: min(820px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: 112px;
    height: auto;
}

.back-link,
.legal-links a {
    color: var(--muted);
    font-size: .88rem;
    transition: color .2s ease;
}

.back-link::before {
    margin-right: 7px;
    content: "←";
}

.back-link:hover,
.legal-links a:hover,
.site-footer a:hover {
    color: var(--primary);
}

.legal-page {
    padding: 38px 0 86px;
}

.legal-card {
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid rgba(74, 59, 110, .08);
    border-radius: 30px;
    background: rgba(255, 253, 249, .92);
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 6vw, 3.35rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: 1.2;
}

.updated-at {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: .84rem;
}

.lead {
    margin-bottom: 30px;
    padding: 18px 20px;
    border-left: 3px solid var(--primary);
    border-radius: 0 14px 14px 0;
    color: var(--primary-deep);
    background: var(--lavender);
}

.legal-section {
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.legal-section + .legal-section {
    margin-top: 28px;
}

.legal-section h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.4;
}

.legal-section h3 {
    margin: 18px 0 6px;
    font-size: 1.03rem;
    font-weight: 600;
}

.legal-section p:last-child,
.legal-section ul:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    margin: 10px 0 0;
    padding-left: 1.35em;
}

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

.data-table-wrap {
    margin-top: 14px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: .92rem;
}

.data-table th,
.data-table td {
    padding: 11px 13px;
    border: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}

.data-table th {
    color: var(--primary-deep);
    background: #f4effa;
    font-weight: 600;
}

.notice {
    margin-top: 16px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    background: rgba(243, 234, 220, .52);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.site-footer {
    padding: 0 0 32px;
    color: #958d9b;
    font-size: .78rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    gap: 20px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
}

.footer-brand img {
    width: 90px;
    height: auto;
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 820px);
    }

    .topbar {
        min-height: 68px;
    }

    .legal-page {
        padding-top: 20px;
    }

    .legal-card {
        padding: 25px 20px 30px;
        border-radius: 22px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
