/* ================================================
   terms-page.css — Terms & Conditions page styles
   ================================================ */

.terms-page {
    background: #f4f4f4;
    padding: 48px 0 80px;
}

/* ── Sidebar ─────────────────────────────────── */
.toc-sidebar {
    position: sticky;
    top: 100px;
}

.toc-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.toc-box__title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.toc-box__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-box__list li + li {
    margin-top: 2px;
}

.toc-box__list a {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6b7280;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.18s ease;
    line-height: 1.35;
}

.toc-box__list a:hover {
    color: #222f3e;
    background: #f3f4f6;
    border-left-color: #ffda79;
}

.toc-box__list a.active {
    color: #222f3e;
    background: #fffbeb;
    border-left-color: #ffda79;
    font-weight: 700;
}

/* ── Main content card ───────────────────────── */
.terms-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ── Page title ──────────────────────────────── */
.terms-card__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #222f3e;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #ffda79;
    line-height: 1.2;
}

/* ── Meta block ──────────────────────────────── */
.terms-meta {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #ffda79;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
    font-size: 0.85rem;
    color: #4b5563;
}

.terms-meta span strong {
    color: #222f3e;
}

/* ── Section blocks ──────────────────────────── */
.terms-section {
    scroll-margin-top: 110px;
    margin-bottom: 8px;
}

.terms-section h4 {
    font-size: 0.97rem;
    font-weight: 800;
    color: #222f3e;
    margin: 2rem 0 0.75rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.terms-section:first-of-type h4 {
    margin-top: 0;
}

.terms-section p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.terms-section ul,
.terms-section ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.terms-section li {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.terms-section strong {
    color: #1f2937;
}

/* ── Warning box ─────────────────────────────── */
.terms-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: #78350f;
    margin: 1rem 0;
    line-height: 1.6;
}

/* ── Contact grid ────────────────────────────── */
.terms-contacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 14px 0;
}

.terms-contact-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
}

.terms-contact-item__label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 5px;
}

.terms-contact-item a {
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
}

.terms-contact-item a:hover {
    text-decoration: underline;
}

/* ── Acknowledgment ──────────────────────────── */
.terms-ack {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #ffda79;
    border-radius: 10px;
    padding: 24px 28px;
    margin-top: 2.5rem;
}

.terms-ack__title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #222f3e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.terms-ack__text {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* ── Mobile ──────────────────────────────────── */
@media (max-width: 991px) {
    .terms-card {
        padding: 28px 24px;
    }
    .terms-card__title {
        font-size: 1.3rem;
    }
    .terms-meta {
        grid-template-columns: 1fr;
    }
    .terms-contacts {
        grid-template-columns: 1fr;
    }
}

/* ── Info box (blue, for notices) ────────────── */
.terms-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: #1e3a5f;
    margin: 1rem 0;
    line-height: 1.6;
}

.terms-info a {
    color: #2563eb;
    font-weight: 600;
}