:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
    --transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 600px; /* 縮小尺寸 */
    height: 600px;
    background: radial-gradient(circle, rgba(120, 80, 255, 0.4) 0%, rgba(120, 80, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(100px); /* 稍微調小模糊度 */
    animation: float 20s infinite alternate;
    pointer-events: none;
}

.blob-1 {
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(255, 60, 180, 0.35) 0%, rgba(255, 60, 180, 0) 70%);
}

.blob-2 {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(60, 180, 255, 0.35) 0%, rgba(60, 180, 255, 0) 70%);
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 100px);
    }
}

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

.text-center {
    text-align: center;
}

/* Floating Pill Navbar */
.navbar {
    padding: 8px 0;
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1100px; /* 增加寬度限制，給文字更多空間 */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05); /* 改回輕透的白玻璃感 */
    backdrop-filter: blur(50px); /* 保留強力磨砂效果 */
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 38px;
    border-radius: 24px;
    object-fit: contain;
}

.logo a:hover {
    color: #fff;
    opacity: 0.9;
}

/* 漢堡選單變成 X 的動畫 */
.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    width: 100%;
    flex-wrap: nowrap !important; /* 強制不換行 */
}


.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 15px;
    flex-shrink: 0;
}

.nav-menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 15px;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap !important;
    display: inline-block;
}

/* 中等螢幕縮小間距以防止換行 */
@media (max-width: 1250px) and (min-width: 1101px) {
    .navbar .container {
        padding: 0 10px;
    }
    
    .nav-menu li {
        margin-left: 5px;
    }
    
    .nav-menu li a {
        font-size: 12.5px;
        padding: 5px 8px;
    }
    
    .logo {
        font-size: 17px;
    }
}

nav ul li a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
    color: var(--text-primary);
}

.btn-download {
    background: var(--text-primary);
    color: var(--bg-color) !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #000;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
    padding: 140px 0;
}

/* Hero */
.hero {
    padding-top: 200px;
}

h1 {
    font-size: 96px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -4px;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 28px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 80px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.hero-mockup {
    margin-top: 40px;
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* 與下方 Bento Grid 容器對齊 */
    margin-left: auto;
    margin-right: auto;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-triple-simple {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
}

.glass-frame {
    position: absolute;
    border-radius: 32px;
    padding: 0;
    background: #000;
    border: 1px solid rgba(0, 0, 0, 0.8);
    /* 深色邊線 */
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.9),
        /* 底部深影 */
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    /* 內縮暗邊 */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.6s ease,
        height 0.6s ease,
        z-index 0s;
    overflow: hidden;
    cursor: pointer;
}

.glass-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.glass-frame.main {
    z-index: 3;
    width: 20vw;
    /* 使用視窗寬度單位 */
    max-width: 386px;
    min-width: 280px;
    aspect-ratio: 386 / 785;
}

.glass-frame.side {
    z-index: 2;
    width: 18vw;
    max-width: 342px;
    min-width: 240px;
    aspect-ratio: 342 / 701;
}

.glass-frame.side.left {
    /* 大螢幕時固定位移，小螢幕時隨比例縮小 */
    transform: translateX(clamp(-420px, -28vw, -150px)) rotateY(15deg) scale(0.9);
}

.glass-frame.side.right {
    transform: translateX(clamp(150px, 28vw, 420px)) rotateY(-15deg) scale(0.9);
}

/* 僅在桌面版啟用的互動邏輯 */
@media (min-width: 769px) {
    .hero-triple-simple:has(.side.left:hover) .main {
        transform: scale(0.85);
        z-index: 1;
    }

    .hero-triple-simple:has(.side.right:hover) .main {
        transform: scale(0.85);
        z-index: 1;
    }

    .glass-frame.side.left:hover {
        z-index: 10 !important;
        transform: translateX(clamp(-420px, -28vw, -150px)) rotateY(15deg) scale(1.1) !important;
    }

    .glass-frame.side.right:hover {
        z-index: 10 !important;
        transform: translateX(clamp(150px, 28vw, 420px)) rotateY(-15deg) scale(1.1) !important;
    }

    .glass-frame.main:hover {
        z-index: 10;
        transform: scale(1.05);
    }
}

@media (max-width: 1024px) {
    .hero-mockup {
        height: 600px;
    }

    .glass-frame.main {
        width: 30vw;
    }

    .glass-frame.side {
        width: 28vw;
    }

    .glass-frame.side.left {
        transform: translateX(-25vw) rotateY(15deg) scale(0.9);
    }

    .glass-frame.side.right {
        transform: translateX(25vw) rotateY(-15deg) scale(0.9);
    }
}

@media (max-width: 768px) {
    .hero-mockup {
        height: auto;
        margin-top: 30px;
        overflow: visible;
        touch-action: pan-y;
    }

    .hero-triple-simple {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: none;
        gap: 20px;
        padding: 20px;
        perspective: none;
        justify-content: flex-start;
        align-items: flex-start;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y; /* 同時允許水平與垂直手勢 */
        overscroll-behavior-x: contain;
        overscroll-behavior-y: auto;
        scrollbar-width: none;
    }

    .hero-triple-simple::-webkit-scrollbar {
        display: none;
    }

    .glass-frame {
        position: relative !important;
        flex: 0 0 260px;
        width: 260px !important;
        height: 530px !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        margin: 0;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        pointer-events: auto;
        touch-action: pan-x pan-y; /* 同時允許水平與垂直手勢 */
    }

    .glass-frame.side {
        display: block;
        opacity: 0.8;
    }

    /* 移除虛擬間距，避免觸碰干擾 */
    .hero-triple-simple::before,
    .hero-triple-simple::after {
        display: none;
    }
}

/* Bento Grid Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 450px;
    gap: 24px;
}

.feature-card {
    background: var(--glass-bg);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transition: var(--transition);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.01);
}

.feature-card.large {
    grid-column: span 8;
}

.feature-card.small {
    grid-column: span 4;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: block;
}

.feature-card.with-image {
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.feature-info {
    padding: 40px;
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: var(--transition);
}

.feature-card.large .feature-info {
    width: 55%;
}

.feature-card.large:hover .feature-info {
    width: 45%;
}

.feature-screenshot {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.feature-screenshot img {
    width: 45%;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%) scale(1);
    border-radius: 20px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
    opacity: 0.9;
    clip-path: inset(5% 0 0 0);
    transition: var(--transition);
}

.feature-card:hover .feature-screenshot img {
    transform: translateY(-57%) scale(1.3);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}

.feature-card.vertical:hover .feature-screenshot img {
    transform: translateX(50%) translateY(-5%) scale(1.25);
    bottom: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%), linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%), linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-composite: source-in;
    -webkit-mask-composite: source-in;
}

/* 針對不同卡片類型的調整 */
.feature-card.vertical .feature-screenshot img {
    width: 80%;
    /* bottom: -50%; */
    top: 35%;
    right: 50%;
    transform: translateX(50%) scale(1);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%), linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%), linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-composite: source-in;
    -webkit-mask-composite: source-in;
}

.feature-card.vertical {
    padding: 0;
    position: relative;
}

.feature-card.vertical h3 {
    transition: var(--transition);
}

.feature-card.vertical p {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-card.vertical:hover p {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.feature-card h3 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 17px;
    font-weight: 400;
}

/* CTA */
.cta h2 {
    font-size: 48px;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-appstore,
.btn-googleplay {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 25px;
    border-radius: 100px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
    white-space: nowrap !important; /* 禁止換行 */
}

.btn-appstore i,
.btn-googleplay i {
    font-size: 30px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.1;
}

.btn-text span {
    font-size: 12px !important;
    display: block;
    transform: scale(0.8);
    transform-origin: left bottom;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.btn-text strong {
    font-size: 22px !important;
    font-weight: 700;
    display: block;
}

.btn-appstore:hover,
.btn-googleplay:hover {
    background: #fff;
    color: #000;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
    .download-buttons {
        gap: 10px;
        padding: 0 10px;
    }

    .btn-appstore,
    .btn-googleplay {
        min-width: 140px;
        padding: 8px 15px;
        gap: 8px;
    }

    .btn-appstore i,
    .btn-googleplay i {
        font-size: 22px;
    }

    .btn-text span {
        font-size: 9px !important;
        transform: scale(0.9);
        margin-bottom: 0;
    }

    .btn-text strong {
        font-size: 16px !important;
    }
}

/* Pricing Table Section */
.pricing {
    background: transparent;
    /* 移除純黑背景，露出底層光暈 */
    padding-bottom: 120px;
    position: relative;
    z-index: 5;
}

.pricing-table-container {
    background: rgba(255, 255, 255, 0.01);
    /* 極低透明度，近乎透明 */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 80px 40px 40px;
    /* 增加頂部間距以容納備註 */
    margin-top: 60px;
    overflow-x: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    position: relative;
    /* 為了讓備註絕對定位 */
}

.pricing-note {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 11px;
    /* 稍微縮小一點點更有精緻感 */
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    letter-spacing: 1.5px;
    /* 增加字距 */
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.pricing-table th,
.pricing-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-table th {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 30px;
}

.pricing-table td {
    font-size: 16px;
    color: var(--text-secondary);
}

.pricing-table th:first-child,
.pricing-table td:first-child {
    text-align: left;
    color: var(--text-primary);
    font-weight: 500;
    width: 30%;
}

/* 欄位高亮 */
.pricing-table th.highlight,
.pricing-table td:nth-child(3) {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.pricing-table th.pro,
.pricing-table td:nth-child(4) {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.02);
}

.pricing-table .check {
    color: #00ff88;
    font-weight: bold;
    font-size: 20px;
}

.pricing-table .coming-soon td {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* Table Buttons */
.btn-table-primary,
.btn-table-secondary,
.btn-table-pro {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-table-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.btn-table-primary {
    background: #fff;
    color: #000;
}

.btn-table-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-table-pro {
    background: #00ff88;
    color: #000;
}

.btn-table-pro:hover {
    background: #00e67a;
    transform: translateY(-2px);
}

.pricing-table tfoot td {
    border-bottom: none;
    padding-top: 40px;
}

/* Contact Section */
.contact {
    padding-bottom: 120px;
}

.contact h2 {
    margin-bottom: 20px;
}

.contact p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-info {
    margin-top: 20px;
}

.email-link {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.email-link:hover {
    color: #00ff88;
    border-color: #00ff88;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 64px;
        letter-spacing: -2px;
    }

    .subtitle {
        font-size: 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .feature-card.large,
    .feature-card.small {
        grid-column: span 1;
    }
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hamburger {
    width: 22px;
    height: 10px; /* 控制 = 的高度 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.15); /* 大幅降低亮度，只保留輕微暗色 */
    backdrop-filter: blur(80px); /* 保留極限模糊 */
    -webkit-backdrop-filter: blur(80px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 1200px) {
    .mobile-menu-toggle {
        display: flex; /* Show on mobile */
    }

    .navbar nav {
        display: contents; /* 讓 nav 標籤不影響佈局，但允許其子元素顯示 */
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 90px; /* 在導覽列下方 */
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 90%;
        max-width: 400px;
        background: rgba(255, 255, 255, 0.05); /* 回歸輕盈的透明感 */
        backdrop-filter: blur(60px);
        -webkit-backdrop-filter: blur(60px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 30px;
        flex-direction: column !important;
        padding: 40px 30px;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
        transform: translateY(-20px); /* 初始位移用於動畫 */
    }

    .nav-menu.active {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    .nav-menu li {
        margin: 10px 0 !important;
        width: 100%;
        text-align: center;
        margin-left: 0 !important; /* 覆蓋原本的左邊距 */
    }

    .nav-menu li a {
        font-size: 18px;
        display: block;
        padding: 12px;
        border-radius: 15px;
        transition: all 0.2s ease;
    }

    .nav-menu li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-menu .btn-download {
        margin-top: 10px;
        background: #fff !important;
        color: #000 !important;
        width: 100% !important;
        justify-content: center;
    }

    .nav-menu .btn-download:hover {
        color: #000 !important;
        background: #f0f0f0 !important; /* 輕微變色作為回饋 */
        transform: translateY(-2px);
    }
}

@media (max-width: 600px) {
    .navbar {
        width: 95%;
        top: 10px;
    }

    .navbar .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 40px;
    }

    nav ul {
        display: none;
        /* Hide only on very small screens */
    }
}
/* Legal Pages Styles */
.legal-page {
    padding: 120px 20px 60px;
    min-height: 100vh;
}

.legal-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.legal-card h1 {
    font-size: 42px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    text-align: center;
}

.legal-card h2 {
    font-size: 20px;
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid rgba(120, 80, 255, 0.8);
}

.legal-card p, .legal-card li {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.legal-card ul {
    padding-left: 20px;
    margin-bottom: 30px;
}

.back-home {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.back-home:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .legal-page {
        padding-top: 100px;
    }
    .legal-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .legal-card h1 {
        font-size: 28px;
    }
    .back-home {
        top: 20px;
        left: 20px;
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* Mobile Fixes for Legal Pages */
@media (max-width: 480px) {
    .legal-page {
        padding: 80px 10px 40px; /* 減少上下邊距 */
    }
    
    .legal-card {
        padding: 25px 15px;
        width: 100% !important;
        max-width: none !important;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.08) !important; /* 手機版稍微加深背景，確保玻璃感明顯 */
    }

    .legal-card h1 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .legal-card h2 {
        font-size: 18px;
        margin-top: 30px;
    }

    .legal-card p, .legal-card li {
        font-size: 14px;
        line-height: 1.6;
    }
}
