/* ============================================
   XuMing — Legal Pages Stylesheet
   Shared styles for privacy.html and terms-of-service.html
   ============================================ */

/* ——— SCOPE ISOLATION ——— */
.legal-page .legal-content section {
    background-color: transparent !important;
}

/* ——— LEGAL CONTENT CONTAINER ——— */
.legal-content .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-content {
    padding: 48px 0 60px;
    background-color: #0D0E14;
}

/* ——— TABLE OF CONTENTS ——— */
.toc {
    background-color: #151721;
    border: 1px solid #272A36;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 44px;
}
.toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #F1F3F9;
    margin-bottom: 16px;
}
.toc-list {
    list-style: none;
    padding-left: 0;
    counter-reset: toc-counter;
}
.toc-list li {
    counter-increment: toc-counter;
    padding: 5px 0;
}
.toc-list li a {
    font-size: 0.9rem;
    color: #9CA3B8;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.6;
}
.toc-list li a::before {
    content: counter(toc-counter) ". ";
    color: #FF6B45;
    font-weight: 600;
}
.toc-list li a:hover { color: #FF6B45; }
.toc-list li a:visited { color: #9CA3B8; }

/* ——— SECTIONS ——— */
.legal-content section {
    padding: 0;
    margin-bottom: 48px;
    background-color: transparent;
    color: #F1F3F9;
}
.legal-content section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F1F3F9;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #272A36;
}
.legal-content section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F1F3F9;
    margin-top: 22px;
    margin-bottom: 10px;
}
.legal-content section p {
    font-size: 0.95rem;
    color: #9CA3B8;
    line-height: 1.75;
    margin-bottom: 14px;
}
.legal-content section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}
.legal-content section ul li {
    font-size: 0.93rem;
    color: #9CA3B8;
    line-height: 1.7;
    padding: 5px 0 5px 20px;
    position: relative;
}
.legal-content section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background-color: #FF6B45;
    border-radius: 50%;
}
.legal-content section a {
    color: #FF6B45;
    text-decoration: none;
    transition: color 0.2s;
}
.legal-content section a:hover { color: #00D4AA; }

/* ——— LEGAL CONTACT INFO BLOCK ——— */
.legal-contact-info {
    background-color: #151721;
    border: 1px solid #272A36;
    border-radius: 10px;
    padding: 24px 28px;
    margin: 18px 0 20px;
}
.legal-contact-info p {
    font-size: 0.925rem;
    color: #9CA3B8;
    margin-bottom: 8px;
    line-height: 1.7;
}
.legal-contact-info p:last-child { margin-bottom: 0; }
.legal-contact-info strong {
    color: #F1F3F9;
    font-weight: 600;
}
.legal-contact-info a {
    color: #FF6B45;
    text-decoration: none;
    transition: color 0.2s;
}
.legal-contact-info a:hover { color: #00D4AA; }

/* ——— SMOOTH SCROLLING OFFSET FOR ANCHOR LINKS ——— */
.legal-content section {
    scroll-margin-top: 20px;
}

/* ——— RESPONSIVE ——— */
@media (max-width: 768px) {
    .legal-content { padding: 32px 0 48px; }
    .legal-content .container { padding: 0 16px; }
    .toc { padding: 20px 20px; }
    .legal-content section h2 { font-size: 1.25rem; }
    .legal-content section p { font-size: 0.9rem; }
    .legal-contact-info { padding: 18px 16px; }
}