/* QA r19 2026-07-17: legal.css NAMED Noto Sans SC but never loaded it —
   these pages don't import tokens.css, so on any OS without a CJK font
   the CN legal pages tofu'd. Load the self-hosted webfont (relative path
   resolves to src/styles/ EN and chinese/src/styles/ CN). */
@import url("../styles/fonts-noto-sc.css");

/* QA R12: the cookie-consent banner (privacy-notice.js) is appended as a
   SIBLING of .legal-page, so it inherits the BODY font — which was still
   Times New Roman here (no CJK glyphs: the CN banner painted nothing).
   Scope the brand stack to body, not only .legal-page. */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', Roboto, Helvetica, Arial, sans-serif;
}

.legal-page {
    /* QA r18 2026-07-17: this page loads ONLY legal.css (no tokens.css), which
       declared no font-family at all — so body fell back to Times New Roman and
       CJK rendered in a generic/blank serif on the CN legal pages. Explicit
       brand stack with the CJK fallback (var(--font-sans) can't resolve here). */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', Roboto, Helvetica, Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.legal-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-header .subtitle {
    color: #5a6a6b;
    font-size: 1.1rem;
}

.legal-content {
    color: #34495e;
}

.legal-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.legal-content h3 {
    color: #34495e;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.legal-content h4 {
    color: #34495e;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.legal-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: #f8f9fa;
    border-left: 4px solid #1f6ea5;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.contact-info {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.back-button {
    display: inline-block;
    background: #1f6ea5;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background: #2980b9;
}

.last-updated {
    text-align: center;
    color: #5a6a6b;
    font-style: italic;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.prohibited-list {
    background: #fdf2f2;
    border-left: 4px solid #e74c3c;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.legal-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.legal-table tr:hover {
    background: #f8f9fa;
}

.legal-table a {
    color: #1f6ea5;
    text-decoration: none;
}

.legal-table a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 1rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-table {
        font-size: 0.85rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 0.5rem 0.6rem;
    }
}
/* QA r19 2026-07-17: wide tables (privacy §9 Cookies) overflowed the 390px
   viewport by a few px — .table-responsive was referenced but only defined in
   inline-cookies.css, which the other legal pages don't load. */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive table { min-width: 100%; }

/* QA R5 P3 (2026-07-18): privacy/terms/cookies had no cross-link to legal.html
   (company registration details) — added a small "See also" line under
   .last-updated on each of the three pages. Reuses the R4-fixed contrast
   colors (#5a6a6b 5.66:1, #1f6ea5 5.48:1) rather than new values. */
.related-links {
    text-align: center;
    font-size: 0.85rem;
    color: #5a6a6b;
    margin-top: 0.6rem;
}
.related-links a {
    color: #1f6ea5;
    text-decoration: underline;
}
.related-links a:hover {
    text-decoration: none;
}
