/* ==========================================================================
   Sainfoxiya B2B — Legal Pages (Terms / Privacy / Refund)
   (assets/css/b2bLegal.css) — depends on main.css + b2bLanding.css
   ========================================================================== */

.b2b-legal-head {
    background: var(--gradient-hero-bg);
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.b2b-legal-head .badge { margin-bottom: 0.9rem; }

.b2b-legal-head h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.b2b-legal-head p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Layout: sticky TOC + content */
.b2b-legal-wrap {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    padding: 3rem 0 4rem;
    align-items: start;
}

.b2b-toc {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.b2b-toc h4 {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.b2b-toc a {
    display: block;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    transition: var(--transition);
}

.b2b-toc a:hover,
.b2b-toc a.is-active {
    color: var(--primary);
    background: #eef2ff;
    border-left-color: var(--primary);
}

.b2b-legal-body {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

.b2b-legal-body section { scroll-margin-top: 96px; }
.b2b-legal-body section + section { margin-top: 2.25rem; }

.b2b-legal-body h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.b2b-legal-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
}

.b2b-legal-body p,
.b2b-legal-body li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

.b2b-legal-body p { margin-bottom: 0.9rem; }

.b2b-legal-body ul,
.b2b-legal-body ol {
    margin: 0 0 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.b2b-legal-body ul li { list-style: disc; }
.b2b-legal-body ol li { list-style: decimal; }

.b2b-legal-body a { color: var(--primary); font-weight: 600; }
.b2b-legal-body a:hover { text-decoration: underline; }

.b2b-legal-body strong { color: var(--text-primary); }

.b2b-legal-note {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 1.25rem 0;
}

.b2b-legal-note strong { color: var(--primary); }

@media (max-width: 860px) {
    .b2b-legal-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
    .b2b-toc { position: static; }
    .b2b-legal-body { padding: 1.75rem 1.35rem; }
}
