/* Shared styles for KIEAR legal pages (user / privacy / service agreements) */

.inner-page-banner {
    background: url(../images/banner1.jpg) no-repeat center;
    background-size: cover;
    height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inner-page-banner:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.4;
    background: #000;
}
.inner-banner-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.inner-banner-text h1 {
    letter-spacing: 8px;
    line-height: 1.5em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.37);
    font-size: 3em;
    font-weight: 100;
    color: #fff;
}
.inner-banner-text h4 {
    letter-spacing: 2px;
    line-height: 1.5em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.37);
    font-size: 1.3em;
    font-weight: 100;
    color: #fff;
    margin-top: 10px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(50, 54, 72, 0.25);
    border-radius: 4px;
    overflow: hidden;
    vertical-align: middle;
}
.lang-switch button,
.lang-switch a {
    appearance: none;
    border: 0;
    background: #fff;
    color: #323648;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    margin: 0;
}
.lang-switch button + button,
.lang-switch a + a,
.lang-switch button + a,
.lang-switch a + button {
    border-left: 1px solid rgba(50, 54, 72, 0.25);
}
.lang-switch .active {
    background: #323648;
    color: #fff;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    word-wrap: break-word;
}
.legal-content h2 {
    text-align: center;
    font-size: 2em;
    font-weight: 600;
    color: #323648;
    margin-bottom: 30px;
}
.legal-content h3 {
    font-size: 1.25em;
    font-weight: 600;
    color: #323648;
    margin: 32px 0 14px;
}
.legal-content h4 {
    font-size: 1.05em;
    font-weight: 600;
    color: #323648;
    margin: 22px 0 10px;
}
.legal-content p {
    margin-bottom: 14px;
    color: #444;
}
.legal-nav {
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
}
.legal-nav a {
    color: #323648;
    text-decoration: underline;
    margin: 0 8px;
}

.back-home {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #323648;
    color: #fff;
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}
.back-home:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

/* FOUC guard: hide inactive language blocks before JS runs */
html[lang="zh-CN"] [data-i18n="en"],
html[lang="zh"] [data-i18n="en"],
html:not([lang]) [data-i18n="en"] {
    display: none !important;
}
html[lang="en"] [data-i18n="zh"] {
    display: none !important;
}

@media (max-width: 768px) {
    .inner-page-banner { height: 200px; }
    .inner-banner-text h1 { font-size: 2em; letter-spacing: 4px; }
    .legal-content { padding: 40px 16px 60px; font-size: 15px; }
    .legal-content h2 { font-size: 1.6em; }
}
