/* ─── Terms & Conditions Page ─── */
.tc-page {
    --tc-brand: #045d48;
    --tc-brand-dark: #022c22;
    --tc-brand-mid: #059669;
    --tc-brand-light: #e8f5f1;
    --tc-gold: #c9a227;
    --tc-gold-light: #f0d77a;
    --tc-surface: #ffffff;
    --tc-muted: #f4f7f6;
    --tc-border: #e2ebe8;
    --tc-text: #1a1f26;
    --tc-text-muted: #64748b;
    --tc-radius: 18px;
    --tc-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    font-family: "Inter", system-ui, sans-serif;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(5, 150, 105, 0.06), transparent 60%),
        linear-gradient(180deg, #f8fafb 0%, #fff 40%, #f4f8f7 100%);
    padding-bottom: 0;
    overflow-x: hidden;
}

.tc-page h1, .tc-page h2, .tc-page h3, .tc-page p, .tc-page li {
    text-align: left;
}

/* Hero */
.tc-top {
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    color: #fff;
    padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) clamp(3.5rem, 8vw, 5rem);
    background:
        linear-gradient(135deg, rgba(2, 44, 34, 0.92) 0%, rgba(4, 93, 72, 0.88) 45%, rgba(5, 150, 105, 0.75) 100%),
        url("../banners/1-large.webp") center / cover no-repeat;
}

.tc-top__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 85%);
    pointer-events: none;
}

.tc-top__glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: min(480px, 65vw);
    height: min(480px, 65vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 68%);
    pointer-events: none;
}

.tc-top__inner {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
}

@media (max-width: 767px) {
    .tc-top__inner { grid-template-columns: 1fr; }
}

.tc-top__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tc-gold-light);
    background: rgba(201, 162, 39, 0.14);
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.tc-top__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.tc-top__title em {
    font-style: normal;
    background: linear-gradient(135deg, #f8e89a 0%, var(--tc-gold) 50%, #e0c04a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tc-top__desc {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 32rem;
}

.tc-top__updated {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.tc-top__updated i { color: var(--tc-gold-light); }

.tc-top__accept {
    padding: 1.35rem 1.4rem;
    border-radius: var(--tc-radius);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.tc-top__accept-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tc-gold-light);
}

.tc-top__accept-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

/* Sticky topic nav */
.tc-nav-wrap {
    position: sticky;
    top: var(--tc-sticky-top, 80px);
    z-index: 1020;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--tc-border);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.tc-nav {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.65rem clamp(1rem, 3vw, 1.5rem);
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.tc-nav::-webkit-scrollbar { display: none; }

.tc-nav__btn {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--tc-border);
    border-radius: 999px;
    background: var(--tc-surface);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tc-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tc-nav__btn:hover {
    border-color: rgba(4, 93, 72, 0.25);
    color: var(--tc-brand);
    background: var(--tc-brand-light);
}

.tc-nav__btn.is-active {
    background: linear-gradient(135deg, var(--tc-brand) 0%, var(--tc-brand-mid) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(4, 93, 72, 0.28);
}

/* Main timeline */
.tc-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem);
}

.tc-intro {
    margin-bottom: 2.5rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--tc-radius);
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-left: 4px solid var(--tc-brand);
    box-shadow: var(--tc-shadow);
}

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

.tc-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tc-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1.25rem;
    scroll-margin-top: var(--tc-scroll-offset, 10rem);
}

@media (max-width: 575px) {
    .tc-item { grid-template-columns: 44px minmax(0, 1fr); gap: 0.85rem; }
}

.tc-item__track {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.35rem;
}

.tc-item__dot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--tc-brand) 0%, var(--tc-brand-mid) 100%);
    box-shadow: 0 4px 12px rgba(4, 93, 72, 0.28);
    position: relative;
    z-index: 1;
}

@media (max-width: 575px) {
    .tc-item__dot { width: 34px; height: 34px; font-size: 0.65rem; }
}

.tc-item__line {
    flex: 1;
    width: 2px;
    min-height: 1.5rem;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, var(--tc-brand-mid), var(--tc-brand-light));
}

.tc-item--last .tc-item__line { display: none; }

.tc-item__card {
    margin-bottom: 1.75rem;
    padding: 1.35rem 1.45rem;
    border-radius: var(--tc-radius);
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    box-shadow: var(--tc-shadow);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tc-item__card:hover {
    border-color: rgba(4, 93, 72, 0.18);
    box-shadow: 0 12px 40px rgba(3, 52, 41, 0.1);
}

.tc-item__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    font-weight: 700;
    color: var(--tc-text);
}

.tc-item__text {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--tc-text-muted);
}

.tc-item__text:last-child { margin-bottom: 0; }

.tc-item__text a {
    color: var(--tc-brand);
    font-weight: 600;
    text-decoration: none;
}

.tc-item__text a:hover { text-decoration: underline; }

.tc-list {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tc-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--tc-text-muted);
}

.tc-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tc-brand-mid);
}

/* Alert / callout */
.tc-alert {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid #fecaca;
    background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
}

.tc-alert__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #991b1b;
}

.tc-alert__title i { color: #dc2626; }

.tc-alert p {
    margin: 0 0 0.5rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #b91c1c;
}

.tc-alert .tc-list li { color: #b91c1c; }
.tc-alert .tc-list li::before { background: #dc2626; }

.tc-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.tc-contact__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--tc-brand);
    background: var(--tc-brand-light);
    text-decoration: none;
    transition: background 0.2s ease;
}

.tc-contact__link:hover {
    background: #d4ede6;
    color: var(--tc-brand-dark);
}

/* CTA */
.tc-cta {
    background: linear-gradient(135deg, var(--tc-brand-dark) 0%, var(--tc-brand) 60%, #0d9488 100%);
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem);
    text-align: center;
}

.tc-cta__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 800;
    color: #fff;
    text-align: center;
}

.tc-cta__desc {
    margin: 0 auto 1.25rem;
    max-width: 480px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.tc-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.tc-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.35rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.tc-cta__btn--primary {
    color: var(--tc-brand-dark);
    background: var(--tc-gold-light);
}

.tc-cta__btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.tc-cta__btn:hover { transform: translateY(-2px); color: inherit; }

/* Fade */
.tc-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.tc-fade.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .tc-fade { opacity: 1; transform: none; transition: none; }
}
