/* ============================
   TERMS & CONDITIONS
   ============================ */
.tc-page {
    background: var(--bg);
    color: var(--text-dark);
}

.tc-header {
    padding: var(--space-8, 32px) 0;
}

.tc-header-banner {
    position: relative;
    overflow: visible;               /* biar ilustrasi boleh nembus keluar */
    display: flex;
    align-items: center;
    min-height: 210px;
    padding: var(--space-6, 24px) var(--space-8, 32px);
}

/* layer background biru, ini yang di-clip rounded, bukan bannernya */
.tc-header-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--primary);
    border-radius: var(--radius-lg, 16px);
}

.tc-header-banner-bg::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -20px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.tc-header-banner .tc-header-content {
    position: relative;
    z-index: 2;
    max-width: 55%;
}

.tc-header-banner .tc-header-content h1 {
    margin: 0 0 var(--space-2, 8px);
    color: #fff !important;
    font-size: var(--fs-md, 18px);
    font-weight: var(--fw-extrabold);
    line-height: 1.35;
    letter-spacing: -.01em;
}

.tc-header-banner .tc-header-content p {
    margin: 0;
    color: rgba(255, 255, 255, .85) !important;
    font-size: var(--fs-sm, 13px);
    line-height: 1.65;
}

/* ilustrasi: absolute, keluar dari clipping .tc-header-banner-bg */
.tc-header-illustration {
    position: absolute;
    right: 24px;
    bottom: -38px;
    width: 220px;
    pointer-events: none;
}

.tc-header-illustration img {
    display: block;
    width: 100%;
    height: auto;
}

.tc-star {
    position: absolute;
    z-index: 1;
    color: rgba(255, 255, 255, .6);
}
.tc-star-1 { top: 22px;    right: 260px; font-size: 14px; }
.tc-star-2 { bottom: -10px; right: 300px; font-size: 9px; }
.tc-star-3 { top: 50%;     right: 40px;  font-size: 11px; }

@media (max-width: 768px) {
    .tc-header-banner {
        min-height: 0;
        padding-bottom: calc(var(--space-6, 24px) + 90px);
    }
    .tc-header-banner .tc-header-content {
        max-width: none;
    }
    .tc-header-illustration {
        width: 170px;
        right: 12px;
        bottom: -20px;
    }
    .tc-star-1 { right: 160px; }
    .tc-star-2 { right: 190px; }
}

/* ============================
   LAYOUT
   ============================ */
.tc-content-section {
    padding: var(--space-10, 40px) 0 var(--space-14, 56px);
}

.tc-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-10, 40px);
    align-items: start;
}

/* ---- TOC ---- */
.tc-toc {
    position: sticky;
    top: 104px;
}

.tc-toc-label {
    display: block;
    margin-bottom: var(--space-4, 16px);
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
}

.tc-toc nav {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}

.tc-toc a {
    display: flex;
    align-items: baseline;
    gap: var(--space-3, 12px);
    padding: var(--space-2, 8px) 0 var(--space-2, 8px) var(--space-4, 16px);
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    line-height: 1.5;

    transition: .15s ease;
}
.tc-toc a em {
    flex-shrink: 0;
    color: var(--border);
    font-style: normal;
    font-size: 11px;
    font-weight: var(--fw-bold);
}
.tc-toc a:hover {
    border-left-color: var(--primary);
    color: var(--primary);
}
.tc-toc a:hover em {
    color: var(--primary);
}
.tc-toc-empty {
    color: var(--muted);
    font-size: var(--fs-xs);
}

/* ---- DOCUMENT ---- */
.tc-document {
    max-width: 720px;
}

.tc-clause {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: var(--space-5, 20px);

    padding-bottom: var(--space-8, 32px);
    margin-bottom: var(--space-8, 32px);
    border-bottom: 1px solid var(--border-soft);

    scroll-margin-top: 100px;
}
.tc-clause:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}
.tc-clause:target .tc-clause-number {
    color: var(--primary);
}

.tc-clause-number {
    color: var(--border);
    font-size: var(--fs-md);
    font-weight: var(--fw-extrabold);
    line-height: 1.4;
    transition: .2s ease;
}

.tc-clause-body h2 {
    margin: 0 0 var(--space-4, 16px);
    color: var(--text-dark);
    font-size: var(--fs-md);
    font-weight: var(--fw-extrabold);
    line-height: 1.35;
}

.tc-clause-body p {
    margin: 0 0 var(--space-4, 16px);
    color: var(--text);
    font-size: var(--fs-xs);
    line-height: 1.9;
}
.tc-clause-body p:last-child {
    margin-bottom: 0;
}

/* ============================
   FAQ
   ============================ */
.tc-faq {
    padding: var(--space-16, 64px) 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
}

.tc-faq-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-12, 48px);
    align-items: start;
}

/* ---- INTRO (left, sticky) ---- */
.tc-faq-intro {
    position: sticky;
    top: 104px;
}

.tc-faq-eyebrow {
    display: inline-block;
    margin-bottom: var(--space-3, 12px);
    padding: var(--space-1, 4px) var(--space-3, 12px);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-bold);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tc-faq-intro h2 {
    margin: 0 0 var(--space-2, 8px);
    color: var(--text-dark);
    font-size: var(--fs-lg);
    font-weight: var(--fw-extrabold);
    line-height: 1.25;
    letter-spacing: -.02em;
}

.tc-faq-intro p {
    margin: 0;
    color: var(--muted);
    font-size: var(--fs-xs);
    line-height: 1.75;
}

.tc-faq-help {
    margin-top: var(--space-8, 32px);
    padding: var(--space-5, 20px);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
}

.tc-faq-help p {
    margin: 0 0 var(--space-2, 8px);
    color: var(--text-dark);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
}

.tc-faq-help-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-decoration: none;
    transition: gap .15s ease;
}

.tc-faq-help-link:hover {
    gap: var(--space-3, 12px);
}

.tc-faq-help-link i {
    font-size: var(--fs-xs);
}

/* ---- LIST (right) ---- */
.tc-faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 12px);
}

.tc-faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    padding: var(--space-5, 20px) var(--space-6, 24px);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.tc-faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}

.tc-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4, 16px);
    color: var(--text-dark);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}
.tc-faq-item summary::-webkit-details-marker {
    display: none;
}

.tc-faq-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
    font-size: 12px;
    transition: .2s ease;
}
.tc-faq-item[open] .tc-faq-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: rotate(135deg);
}

.tc-faq-answer {
    padding-right: var(--space-10, 40px);
}

.tc-faq-answer p {
    margin: var(--space-3, 12px) 0 0;
    color: var(--muted);
    font-size: var(--fs-xs);
    line-height: 1.8;
}

.tc-faq-empty {
    padding: var(--space-8, 32px);
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg, 16px);
    color: var(--muted);
    font-size: var(--fs-xs);
    text-align: center;
}

@media (max-width: 900px) {
    .tc-faq-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8, 32px);
    }
    .tc-faq-intro {
        position: static;
    }
    .tc-faq-help {
        max-width: 420px;
    }
}

@media (max-width: 640px) {
    .tc-faq {
        padding: var(--space-10, 40px) 0;
    }
    .tc-faq-item {
        padding: var(--space-4, 16px);
    }
    .tc-faq-answer {
        padding-right: 0;
    }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .tc-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8, 32px);
    }
    .tc-toc {
        position: static;
    }
    .tc-toc nav {
        border-left: none;
        border-top: 1px solid var(--border);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .tc-toc a {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
        padding-top: var(--space-3, 12px);
        padding-bottom: var(--space-3, 12px);
        border-bottom: 1px solid var(--border-soft);
    }
    .tc-toc a:hover {
        border-left: none;
        padding-left: var(--space-2, 8px);
    }
    .tc-document {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .tc-header {
        padding: var(--space-9, 36px) 0 var(--space-7, 28px);
    }
    .tc-header h1 {
        font-size: var(--fs-lg);
    }
    .tc-header p {
        font-size: var(--fs-xs);
    }
    .tc-toc nav {
        grid-template-columns: 1fr;
    }
    .tc-clause {
        grid-template-columns: 32px 1fr;
        gap: var(--space-3, 12px);
    }
    .tc-clause-number {
        font-size: var(--fs-sm);
    }
    .tc-clause-body h2 {
        font-size: var(--fs-sm);
    }
}