/* ================================
   Legal Pages Styles
   (Terms of Service, Privacy Policy, Cookie Policy)
   ================================ */

/* Legal Page Wrapper - 参照 blog detail 的 article-wrapper */
.legal-wrapper {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    margin-top: calc(var(--top-bar-height) + var(--header-height));
    margin-bottom: 60px;
}

/* .legal-wrapper .container {
    max-width: 100%;
} */

/* Breadcrumb */
.legal-wrapper .breadcrumb {
    font-weight: 300;
    font-size: 14px;
    margin-bottom: 30px;
    color: #666;
}

.legal-wrapper .breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-wrapper .breadcrumb a:hover {
    color: var(--accent-purple);
}

.legal-wrapper .breadcrumb span {
    color: var(--accent-purple);
}

/* Legal Header Section */
.legal-header-section {
    margin-bottom: 40px;
    text-align: left;
    margin-top: 2rem;
}

.legal-header-section h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 16px;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.legal-header-section hr {
    border: none;
    border-top: 2px solid var(--accent-purple);
    width: 100%;
    max-width: 980px;
    margin: 16px 0;
}

.legal-header-section .update-date {
    font-size: 14px;
    color: #333;
    margin-top: 8px;
}

/* Legal Content Section */
.legal-content-section {
    margin-bottom: 40px;
}

.legal-content-section h3,
.legal-content-section p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #333;
    font-size: 17px;
    font-weight: 300;
    font-family: var(--font-primary);
}

.legal-content-section h3,
.legal-content-section p[style*="font-weight:bold"] {
    font-size: 18px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #333;
}

.legal-content-section .section-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #333;
    font-family: var(--font-heading);
}

.legal-content-section h4,
.legal-content-section .subsection-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #333;
    font-family: var(--font-heading);
}

.legal-content-section li strong {
    font-weight: 700;
}

.legal-content-section ul,
.legal-content-section ol {
    margin-left: 24px;
    margin-bottom: 16px;
    padding-left: 0;
}

.legal-content-section li {
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 17px;
    font-weight: 300;
    color: #333;
}

.legal-content-section li p {
    margin-bottom: 8px;
}

.legal-content-section a {
    color: var(--accent-purple);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-content-section a:hover {
    color: var(--accent-purple-dark);
}

.legal-content-section strong {
    font-weight: 700;
}

/* Legal Navigation */
.legal-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #E8E6E6;
}

.legal-navigation a {
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.legal-navigation a:hover {
    color: var(--accent-purple-dark);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1440px) {
    .legal-wrapper {
        padding: 0 60px;
    }
}

@media (max-width: 1200px) {
    .legal-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .legal-wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .legal-wrapper {
        margin-top: 24px;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .legal-header-section h2 {
        font-size: 28px;
    }

    .legal-content-section h3,
    .legal-content-section .section-title {
        font-size: 20px;
    }

    .legal-content-section h4,
    .legal-content-section .subsection-title {
        font-size: 18px;
    }

    .legal-content-section p,
    .legal-content-section li {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .legal-wrapper {
        padding: 0 15px;
    }

    .legal-header-section h2 {
        font-size: 24px;
    }
}
