/* ========================================
   TERMS & CONDITIONS — STANDALONE PAGE
   Uses theme variables from style.css
   ======================================== */

.tc-page-body {
    padding-top: 70px;
}

/* ---- HERO ---- */
.tc-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.tc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(237,50,55,0.15) 0%, transparent 55%);
    pointer-events: none;
}

.tc-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.tc-hero-text { flex: 1; }

.tc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(237,50,55,0.2);
    border: 1px solid rgba(237,50,55,0.4);
    border-radius: 999px;
    color: rgba(255,255,255,0.92);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.tc-badge i { color: var(--primary-red); }

.tc-hero-text h1 {
    font-family: var(--font-anek);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.tc-hero-text p {
    font-size: 1rem;
    color: rgba(255,255,255,0.78);
    max-width: 520px;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tc-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
}

.tc-meta i { color: #4ade80; }

.tc-hero-icon {
    font-size: clamp(4rem, 10vw, 7rem);
    color: rgba(255,255,255,0.06);
    flex-shrink: 0;
    line-height: 1;
}

/* ---- BREADCRUMB ---- */
.tc-breadcrumb {
    background: var(--gray-light);
    border-bottom: 1px solid #e8e8e8;
    padding: 0.65rem 0;
}

.tc-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--gray-dark);
}

.tc-breadcrumb a {
    color: var(--primary-red);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

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

.tc-breadcrumb i.fa-angle-right {
    font-size: 0.7rem;
    color: var(--gray-text);
}

/* ---- LAYOUT ---- */
.tc-main { padding: 3rem 0 5rem; }

.tc-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ---- SIDEBAR ---- */
.tc-sidebar {
    position: sticky;
    top: 90px;
}

.tc-sidebar-inner {
    background: var(--gray-light);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #ebebeb;
}

.tc-toc-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-text);
    margin-bottom: 1rem;
}

.tc-toc-label i { color: var(--primary-red); }

#tc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 1.5rem;
}

.tc-toc-link {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-dark);
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.tc-toc-link:hover,
.tc-toc-link.active {
    color: var(--primary-red);
    background: rgba(237,50,55,0.07);
    border-left-color: var(--primary-red);
    font-weight: 600;
}

.tc-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--primary-red);
    text-decoration: none;
    border: 1.5px solid var(--primary-red);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.tc-back-btn:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* ---- CONTENT ---- */
.tc-content { min-width: 0; }

.tc-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #f0f0f0;
    scroll-margin-top: 100px;
}

.tc-section:last-of-type { border-bottom: none; }

.tc-num {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--primary-red);
    background: var(--light-red);
    border-radius: 6px;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.tc-section h2 {
    font-family: var(--font-anek);
    font-size: 1.4rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.tc-section p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

/* ---- LIST ---- */
.tc-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tc-list li {
    font-size: 0.92rem;
    color: #444;
    padding: 0.7rem 1rem;
    background: var(--gray-light);
    border-radius: 10px;
    border-left: 3px solid var(--primary-red);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.tc-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-red);
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* ---- NOTE BOX ---- */
.tc-note {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #78350f;
    line-height: 1.6;
}

.tc-note i {
    color: #f59e0b;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.tc-note strong { color: #92400e; }

/* ---- INLINE LINK ---- */
.tc-inline-link {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(237,50,55,0.3);
    transition: border-color 0.2s;
}

.tc-inline-link:hover { border-color: var(--primary-red); }

.tc-inline-link i { font-size: 0.7em; }

/* ---- CONTACT CARD ---- */
.tc-contact-card {
    background: #f8f9ff;
    border: 1px solid #e0e4ff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tc-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tc-contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    font-size: 1rem;
}

.tc-contact-row div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.1rem;
}

.tc-contact-row small {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-text);
}

.tc-contact-row strong {
    font-size: 0.92rem;
    color: var(--black);
}

.tc-contact-row a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

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

/* ---- BOTTOM CTA ---- */
.tc-cta {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tc-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(237,50,55,0.2) 0%, transparent 60%);
    pointer-events: none;
}

.tc-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.tc-cta .btn-primary {
    position: relative;
    background: var(--primary-red);
    color: var(--white);
    font-weight: 700;
}

.tc-cta .btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(237,50,55,0.4);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
    .tc-layout {
        grid-template-columns: 1fr;
    }

    .tc-sidebar { position: static; }

    .tc-sidebar-inner { padding: 1rem 1.25rem; }

    #tc-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-bottom: 1rem;
    }

    .tc-toc-link {
        border-left: none;
        border: 1px solid #e0e0e0;
        border-radius: 999px;
        padding: 0.3rem 0.75rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .tc-toc-link:hover,
    .tc-toc-link.active {
        border-color: var(--primary-red);
        background: var(--light-red);
        border-left-color: var(--primary-red);
    }

    .tc-back-btn {
        width: auto;
        margin-top: 0.75rem;
    }
}

@media (max-width: 600px) {
    .tc-hero { padding: 3rem 0 2rem; }
    .tc-hero-icon { display: none; }
    .tc-hero-text h1 { font-size: 1.8rem; }
    .tc-section h2 { font-size: 1.2rem; }
    .tc-main { padding: 2rem 0 4rem; }
    .tc-cta { padding: 1.5rem; }
}

