/**
 * ============================================================
 * CtrlEat Official Shopping Website
 * ============================================================
 * CtrlEat 正式版购物网站
 * 版权归天河星雨工作室[thxymc Studio] thxymc.com所有
 * Copyright © 2026 thxymc.com. All rights reserved.
 * 网页由天河星雨工作室制作 thxymc.com
 * ！！未经允许禁止公开源码！！
 * ============================================================
 */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

.terms-topbar {
    min-height: 68px;
    padding: 0 5vw;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.terms-logo {
    color: #16a34a;
    font-size: 1.45rem;
    font-weight: 1000;
    text-decoration: none;
}

.terms-topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.terms-topbar nav a,
.terms-hero > a,
.terms-card > a {
    color: #334155;
    font-weight: 900;
    text-decoration: none;
}

.terms-page {
    width: min(980px, calc(100% - 32px));
    margin: 28px auto 64px;
}

.terms-hero,
.terms-card,
.terms-list-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.terms-hero {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.terms-hero span {
    color: #16a34a;
    font-weight: 1000;
}

.terms-hero h1 {
    margin: 6px 0 8px;
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.terms-hero p,
.terms-list-card span,
.terms-content {
    color: #475569;
    line-height: 1.85;
    font-weight: 700;
}

.terms-hero > a,
.terms-card > a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    white-space: nowrap;
}

.terms-card {
    padding: 28px;
}

.terms-meta {
    display: flex;
    justify-content: flex-end;
    margin: -6px 0 18px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 900;
}

.terms-content {
    font-size: 1rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.terms-content h1,
.terms-content h2,
.terms-content h3 {
    color: #0f172a;
    line-height: 1.35;
}

.terms-content p {
    margin: 0 0 1em;
}

.terms-content a {
    color: #16a34a;
    font-weight: 900;
}

.terms-disabled {
    padding: 18px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 900;
}

.terms-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.terms-list-card {
    display: grid;
    gap: 8px;
    padding: 20px;
    text-decoration: none;
}

.terms-list-card strong {
    color: #0f172a;
    font-size: 1.08rem;
}

.terms-list-card em {
    color: #94a3b8;
    font-style: normal;
    font-size: 0.84rem;
    font-weight: 900;
}

@media (max-width: 720px) {
    .terms-topbar,
    .terms-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .terms-list {
        grid-template-columns: 1fr;
    }

    .terms-page {
        width: min(100% - 20px, 980px);
        margin: 16px auto 42px;
    }

    .terms-hero,
    .terms-card {
        padding: 18px;
        border-radius: 18px;
    }

    .terms-meta {
        justify-content: flex-start;
    }
}
