/* ============================================================
   STATIC-PAGES.CSS — faq.php / terms.php / static-pages.php
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --sp-primary:      #f97316;
    --sp-primary-dk:   #ea580c;
    --sp-text:         #1f2937;
    --sp-muted:        #6b7280;
    --sp-border:       #e5e7eb;
    --sp-bg:           #f9fafb;
    --sp-lt:           #fff7ed;
    --sp-orange-bd:    #fed7aa;
    --sp-shadow:       0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.04);
}

/* ── Hero ─────────────────────────────────────────────────── */
.sp-hero {
    background: linear-gradient(90deg, #0d1117 0%, #1a2638 50%, #0d1117 100%);
    padding: 44px 0 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}
.sp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(../../img/ta-bg.png) center/cover no-repeat;
    opacity: .07;
    pointer-events: none;
}
.sp-hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}
.sp-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    line-height: 1.2;
}
.sp-hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,.72);
    margin: 0;
}

/* ── Page section wrapper ─────────────────────────────────── */
.sp-section {
    background: var(--sp-bg);
    padding: 36px 0 60px;
}

/* ── Generic card ─────────────────────────────────────────── */
.sp-card {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    box-shadow: var(--sp-shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

/* ── Card header ──────────────────────────────────────────── */
.sp-card-hd {
    padding: 14px 20px;
    background: var(--sp-bg);
    border-bottom: 1px solid var(--sp-border);
    text-align: left;
}
.sp-card-hd h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--sp-text);
    margin: 0;
    letter-spacing: .01em;
}

/* ── FAQ toolbar ──────────────────────────────────────────── */
.sp-faq-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: var(--sp-shadow);
}
.sp-faq-intro {
    font-size: 13.5px;
    color: var(--sp-muted);
    margin: 0;
    line-height: 1.7;
    flex: 1;
    min-width: 0;
}
.sp-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sp-primary);
    background: var(--sp-text);
    border: 1px solid var(--sp-orange-bd);
    border-radius: 8px;
    padding: 8px 15px;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, color .15s;
    line-height: 1;
}
.sp-expand-btn:hover {
    background: var(--sp-muted);
    color: var(--sp-primary-dk);
}

/* ── Accordion ────────────────────────────────────────────── */
.sp-accordion { padding: 0; }
.sp-accordion dl { margin: 0; }

.sp-accordion dt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sp-text);
    cursor: pointer;
    border-bottom: 1px solid var(--sp-border);
    transition: background .14s, color .14s;
    font-family: 'Poppins', sans-serif;
    line-height: 1.45;
    user-select: none;
}
.sp-accordion dt::after {
    content: '\f107';
    font-family: FontAwesome;
    font-size: 15px;
    color: var(--sp-muted);
    flex-shrink: 0;
    transition: transform .22s;
}
.sp-accordion dt:hover {
    background: var(--sp-bg);
}
.sp-accordion dt.opened {
    color: var(--sp-primary);
    background: var(--sp-lt);
}
.sp-accordion dt.opened::after {
    transform: rotate(180deg);
    color: var(--sp-primary);
}
.sp-accordion dt:last-of-type {
    border-bottom: none;
}
.sp-accordion dd {
    display: none;
    padding: 13px 20px 15px;
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.75;
    border-bottom: 1px solid var(--sp-border);
    background: #fff;
    margin: 0;
}
.sp-accordion dd:last-child { border-bottom: none; }

/* ── FAQ contact strip ────────────────────────────────────── */
.sp-faq-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--sp-lt);
    border: 1px solid var(--sp-orange-bd);
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 8px;
}
.sp-faq-contact .fa {
    font-size: 20px;
    color: var(--sp-primary);
    flex-shrink: 0;
}
.sp-faq-contact p {
    font-size: 13.5px;
    color: var(--sp-text);
    margin: 0;
    line-height: 1.6;
}
.sp-faq-contact a { color: var(--sp-primary); font-weight: 600; }

/* ── Terms – two-column layout ────────────────────────────── */
.sp-terms-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.sp-toc-wrap {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}
.sp-toc {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    box-shadow: var(--sp-shadow);
    overflow: hidden;
}
.sp-toc-hd {
    padding: 13px 16px;
    background: var(--sp-lt);
    border-bottom: 1px solid var(--sp-orange-bd);
}
.sp-toc-hd span {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--sp-text);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.sp-toc-list {
    padding: 8px 0;
    margin: 0;
    list-style: none;
}
.sp-toc-list li a {
    display: block;
    padding: 7px 16px;
    font-size: 12.5px;
    color: #4b5563;
    text-decoration: none !important;
    border-left: 3px solid transparent;
    transition: background .12s, color .12s, border-color .12s;
    line-height: 1.4;
}
.sp-toc-list li a:hover {
    background: var(--sp-lt);
    color: var(--sp-primary);
    border-left-color: var(--sp-primary);
}
.sp-terms-body-wrap { flex: 1; min-width: 0; }

/* ── Terms intro card ─────────────────────────────────────── */
.sp-terms-intro {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--sp-shadow);
}
.sp-terms-intro p {
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.75;
    margin: 0 0 10px;
}
.sp-terms-intro p:last-child { margin-bottom: 0; }

/* ── Terms section cards ──────────────────────────────────── */
.sp-terms-section {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    box-shadow: var(--sp-shadow);
    overflow: hidden;
    margin-bottom: 20px;
    scroll-margin-top: 16px;
}
.sp-terms-section-hd {
    padding: 13px 20px;
    background: var(--sp-bg);
    border-bottom: 1px solid var(--sp-border);
    text-align: left;
}
.sp-terms-section-hd h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--sp-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.sp-terms-content {
    padding: 18px 24px;
}
.sp-terms-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--sp-text);
    margin: 20px 0 8px;
}
.sp-terms-content h4:first-child { margin-top: 0; }
.sp-terms-content p {
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.75;
    margin: 0 0 10px;
    text-align: left !important;
}
.sp-terms-content ul {
    margin: 0 0 10px;
    padding-left: 0;
    list-style: none;
}
.sp-terms-content ul li {
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
}
.sp-terms-content ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    width: 5px;
    height: 5px;
    background: var(--sp-primary);
    border-radius: 50%;
    opacity: .6;
}
.sp-terms-content ul ul { margin-top: 6px; }
.sp-terms-content ul ul li::before { background: var(--sp-muted); }
.sp-terms-content em { font-size: 12.5px; color: var(--sp-muted); }

@media (max-width: 768px) {
    .sp-terms-layout   { flex-direction: column; }
    .sp-toc-wrap       { width: 100%; position: static; }
}

/* ── Static / About page ──────────────────────────────────── */
.sp-content-card {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    padding: 26px 30px;
    box-shadow: var(--sp-shadow);
}
.sp-content-card p   { font-size: 14px; color: #4b5563; line-height: 1.8; margin-bottom: 14px; text-align: left !important; }
.sp-content-card h4  { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: var(--sp-text); margin: 18px 0 8px; }
.sp-content-card ul  { padding-left: 20px; margin-bottom: 12px; }
.sp-content-card ul li { font-size: 14px; color: #4b5563; line-height: 1.7; margin-bottom: 8px; list-style: disc; }
.sp-content-card div { font-size: 14px; color: #4b5563; line-height: 1.8; margin: 6px 0; }

.sp-about-block {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sp-shadow);
    margin-top: 20px;
}
.sp-about-block-hd {
    padding: 14px 20px;
    background: var(--sp-lt);
    border-bottom: 1px solid var(--sp-orange-bd);
}
.sp-about-block-hd h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--sp-text);
    margin: 0;
}
.sp-about-block-hd h2 span { color: var(--sp-primary); }
.sp-about-block-body { padding: 22px 24px; }
.sp-about-block-body p { font-size: 14px; color: #4b5563; line-height: 1.8; margin-bottom: 0; }
.sp-map-img { padding: 20px; }
.sp-map-img img { width: 100%; height: auto; border-radius: 8px; display: block; }
