:root {
    --bg: #0b0c10;
    --surface: rgba(255,255,255,.06);
    --surface-2: rgba(255,255,255,.10);
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.70);
    --border: rgba(255,255,255,.14);
    --shadow: 0 10px 30px rgba(0,0,0,.28);
    --accent: #7dd3fc;
    --accent-2: #a78bfa;
    --radius: 18px;
    --container: 980px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f6f7fb;
        --surface: rgba(0,0,0,.04);
        --surface-2: rgba(0,0,0,.07);
        --text: rgba(0,0,0,.90);
        --muted: rgba(0,0,0,.62);
        --border: rgba(0,0,0,.12);
        --shadow: 0 12px 30px rgba(15,23,42,.10);
        --accent: #0284c7;
        --accent-2: #7c3aed;
    }
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: radial-gradient(900px 300px at 15% 0%, rgba(125,211,252,.15), transparent 60%), radial-gradient(800px 260px at 90% 0%, rgba(167,139,250,.16), transparent 55%), var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

    a:hover {
        text-decoration: underline;
    }

strong {
    font-weight: 700;
}

.muted {
    color: var(--muted);
}

.dot {
    opacity: .6;
    padding: 0 .35rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 16px 72px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    background: var(--text);
    color: var(--bg);
    padding: 10px 12px;
    border-radius: 10px;
}

    .skip-link:focus {
        left: 12px;
        z-index: 9999;
    }

.hero {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid var(--border);
}

.hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 16px;
    max-width: var(--container);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand__logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: rgba(0,0,0,.75);
    box-shadow: var(--shadow);
}

.brand__text {
    min-width: 0;
}

h1 {
    margin: 0;
    font-size: clamp(18px, 2.5vw, 24px);
    letter-spacing: .2px;
    line-height: 1.25;
}

.meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
    font-size: 13px;
    cursor: pointer;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn--ghost {
    background: transparent;
    box-shadow: none;
}

.card {
    margin-top: 16px;
    padding: 18px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 60%, transparent));
    box-shadow: var(--shadow);
}

.section h2 {
    margin: 0 0 10px;
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.3;
}

.section h3 {
    margin: 18px 0 10px;
    font-size: 16px;
}

.lead p {
    margin: 0;
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 16px;
    align-items: start;
}

.divider {
    width: 1px;
    height: 100%;
    background: var(--border);
}

.toc {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.toc__title {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.toc__title--follow {
    margin-top: 14px;
}

.toc__list--flat {
    margin-top: 8px;
}

.toc__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.toc a {
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}

    .toc a:hover {
        border-bottom-color: color-mix(in srgb, var(--accent) 60%, transparent);
    }

.bullet {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.sub {
    margin-top: 4px;
    font-size: 13px;
}

.note {
    margin: 0 0 10px;
    padding: 12px 12px;
    border-left: 3px solid color-mix(in srgb, var(--accent) 65%, transparent);
    background: color-mix(in srgb, var(--surface-2) 65%, transparent);
    border-radius: 12px;
}

.callout {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--accent-2) 30%, var(--border));
    background: radial-gradient(500px 160px at 20% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), color-mix(in srgb, var(--surface) 75%, transparent);
    border-radius: 14px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.contact-item {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.value {
    font-size: 15px;
    word-break: break-word;
}

.foot {
    margin: 14px 0 0;
    font-size: 13px;
}

.footer {
    margin-top: 18px;
    padding: 6px 0 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 720px) {
    .hero__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .lang-grid {
        grid-template-columns: 1fr;
    }

    .divider {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .meta {
        white-space: normal;
    }
}

@media print {
    :root {
        --bg: #fff;
        --text: #111;
        --muted: #444;
        --border: #ddd;
        --surface: #fff;
        --surface-2: #fff;
    }

    body {
        background: #fff;
    }

    .hero {
        position: static;
        backdrop-filter: none;
    }

    .actions, .skip-link {
        display: none !important;
    }

    .card, .toc {
        box-shadow: none;
    }

    a {
        text-decoration: none;
    }
}

/* 退款政策：多段條文排版 */
.policy-stack p {
    margin: 0 0 14px;
    line-height: 1.65;
}

.policy-stack h3 {
    margin: 22px 0 10px;
    font-size: 16px;
    line-height: 1.35;
}

.policy-stack h3:first-of-type {
    margin-top: 12px;
}

.policy-stack ul.bullet {
    margin: 0 0 14px;
}

.policy-stack .terms-sub {
    margin: 16px 0 8px;
    font-size: 15px;
    line-height: 1.45;
}

.policy-stack h3 + .terms-sub {
    margin-top: 8px;
}

.policy-stack .terms-sub strong {
    font-weight: 700;
}