/* =============================================================
   Terms of Service Page – Mobile-First, Responsive
   ============================================================= */

/* ── Breadcrumb ─────────────────────────────────────────────── */
.terms-breadcrumb {
    font-size: 0.87rem;
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}
.terms-breadcrumb .breadcrumb-item a {
    color: var(--veye-green);
    text-decoration: none;
    font-weight: 500;
}
.terms-breadcrumb .breadcrumb-item.active {
    color: #6b7b8d;
}

/* ── Hero ───────────────────────────────────────────────────── */
.terms-hero {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 0 24px;
}
.terms-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--veye-green), #15956e);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.terms-hero-icon i {
    font-size: 1.5rem;
    color: #fff;
}
.terms-hero-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}
.terms-hero-subtitle {
    font-size: 0.9rem;
    color: #6b7b8d;
    margin: 6px 0 0;
    line-height: 1.55;
    max-width: 600px;
}
.terms-hero-date {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #8a97a8;
    margin-top: 8px;
}
.terms-hero-date i {
    font-size: 0.72rem;
}

/* ── Main Section ───────────────────────────────────────────── */
.terms-main-section {
    padding-bottom: 56px;
}

/* =============================================================
   Content Sections
   ============================================================= */
.terms-section {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 28px 26px;
    margin-bottom: 20px;
    position: relative;
    scroll-margin-top: 100px;
}
.terms-section-num {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    font-weight: 900;
    color: rgba(27, 176, 135, 0.08);
    line-height: 1;
    user-select: none;
}
.terms-section-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 14px;
    padding-right: 40px;
    line-height: 1.3;
}
.terms-section p {
    font-size: 0.9rem;
    color: #55636f;
    line-height: 1.7;
    margin-bottom: 12px;
}
.terms-section p:last-child {
    margin-bottom: 0;
}

/* ── Lists ──────────────────────────────────────────────────── */
.terms-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}
.terms-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: #55636f;
    line-height: 1.55;
}
.terms-list li i {
    flex-shrink: 0;
    font-size: 0.82rem;
    margin-top: 3px;
    color: var(--veye-green);
}
.terms-list-warning li i {
    color: #dc3545;
}

/* ── Highlight Box (info style) ─────────────────────────────── */
.terms-highlight-box {
    display: flex;
    gap: 14px;
    background: rgba(27, 176, 135, 0.06);
    border-left: 4px solid var(--veye-green);
    border-radius: 0 10px 10px 0;
    padding: 18px 20px;
    margin: 16px 0;
}
.terms-highlight-icon {
    flex-shrink: 0;
}
.terms-highlight-icon i {
    font-size: 1.2rem;
    color: var(--veye-green);
}
.terms-highlight-box strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}
.terms-highlight-box p {
    font-size: 0.85rem;
    color: #55636f;
    line-height: 1.6;
    margin: 0;
}

/* ── Alert Box (warning style) ──────────────────────────────── */
.terms-alert-box {
    display: flex;
    gap: 14px;
    background: rgba(255, 193, 7, 0.08);
    border-left: 4px solid #ffc107;
    border-radius: 0 10px 10px 0;
    padding: 18px 20px;
    margin: 0 0 16px;
}
.terms-alert-icon {
    flex-shrink: 0;
}
.terms-alert-icon i {
    font-size: 1.2rem;
    color: #e6a800;
}
.terms-alert-box strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}
.terms-alert-box p {
    font-size: 0.85rem;
    color: #55636f;
    line-height: 1.6;
    margin: 0;
}

/* ── Contact Box ────────────────────────────────────────────── */
.terms-contact-box {
    background: #f8f9fb;
    border-radius: var(--card-radius);
    padding: 20px 22px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.terms-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--primary-color);
    font-weight: 600;
}
.terms-contact-item i {
    font-size: 1rem;
    color: var(--veye-green);
    width: 20px;
    text-align: center;
}
.terms-contact-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--veye-green);
    text-decoration: none;
    margin-top: 4px;
    transition: gap 0.2s ease;
    gap: 0;
}
.terms-contact-link:hover {
    color: #15956e;
    gap: 2px;
}

/* =============================================================
   Sidebar: Table of Contents
   ============================================================= */
.terms-toc-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 24px;
    margin-bottom: 20px;
    position: sticky;
    top: 100px;
}
.terms-toc-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.terms-toc-title i {
    color: var(--veye-green);
}
.terms-toc-nav {
    display: flex;
    flex-direction: column;
}
.terms-toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #55636f;
    text-decoration: none;
    transition: all 0.18s ease;
    border-left: 3px solid transparent;
}
.terms-toc-link:hover {
    background: #f5f7fa;
    color: var(--primary-color);
}
.terms-toc-link.active {
    background: rgba(27, 176, 135, 0.06);
    color: var(--veye-green);
    font-weight: 700;
    border-left-color: var(--veye-green);
}
.terms-toc-num {
    font-size: 0.72rem;
    font-weight: 800;
    color: #b0b9c6;
    min-width: 20px;
}
.terms-toc-link.active .terms-toc-num {
    color: var(--veye-green);
}

/* ── Sidebar Card ───────────────────────────────────────────── */
.terms-sidebar-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 24px;
    margin-bottom: 20px;
}
.terms-sidebar-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.terms-sidebar-title i {
    color: var(--veye-green);
}
.terms-quick-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.terms-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.terms-quick-link:hover {
    background: rgba(27, 176, 135, 0.06);
    color: var(--veye-green);
}
.terms-quick-link i {
    font-size: 1rem;
    color: var(--veye-green);
    width: 20px;
    text-align: center;
}

/* =============================================================
   Responsive – Tablet (768px+)
   ============================================================= */
@media (min-width: 768px) {
    .terms-hero {
        padding: 36px 0 28px;
    }
    .terms-hero-icon {
        width: 64px;
        height: 64px;
    }
    .terms-hero-icon i {
        font-size: 1.75rem;
    }
    .terms-hero-title {
        font-size: 1.7rem;
    }
    .terms-section {
        padding: 32px 30px;
    }
    .terms-section-title {
        font-size: 1.2rem;
    }
    .terms-section-num {
        font-size: 2.5rem;
    }
}

/* =============================================================
   Responsive – Desktop (992px+)
   ============================================================= */
@media (min-width: 992px) {
    .terms-hero {
        padding: 44px 0 32px;
        gap: 22px;
    }
    .terms-hero-icon {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }
    .terms-hero-icon i {
        font-size: 2rem;
    }
    .terms-hero-title {
        font-size: 1.9rem;
    }
    .terms-section {
        padding: 34px 34px;
    }
    .terms-section-title {
        font-size: 1.25rem;
    }
}

/* =============================================================
   Responsive – Large Desktop (1200px+)
   ============================================================= */
@media (min-width: 1200px) {
    .terms-hero-title {
        font-size: 2.1rem;
    }
}

/* =============================================================
   Responsive – Small (< 576px)
   ============================================================= */
@media (max-width: 575.98px) {
    .terms-hero {
        flex-direction: column;
        gap: 14px;
        padding: 20px 0 16px;
    }
    .terms-hero-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }
    .terms-hero-icon i {
        font-size: 1.2rem;
    }
    .terms-hero-title {
        font-size: 1.2rem;
    }
    .terms-hero-subtitle {
        font-size: 0.84rem;
    }
    .terms-section {
        padding: 22px 18px;
        margin-bottom: 14px;
    }
    .terms-section-title {
        font-size: 1rem;
        padding-right: 30px;
    }
    .terms-section-num {
        font-size: 1.5rem;
        top: 16px;
        right: 14px;
    }
    .terms-section p {
        font-size: 0.85rem;
    }
    .terms-list li {
        font-size: 0.84rem;
    }
    .terms-highlight-box,
    .terms-alert-box {
        flex-direction: column;
        gap: 10px;
        padding: 14px 16px;
    }
    .terms-contact-box {
        padding: 16px;
    }
    .terms-toc-card {
        position: static;
        padding: 20px 16px;
    }
    .terms-toc-link {
        padding: 8px 10px;
        font-size: 0.82rem;
    }
    .terms-sidebar-card {
        padding: 20px 16px;
    }
}
