﻿/* LEGAL PAGE — 法律/文档通用页样式 */
/* 前缀 lg-（legal） */

/* ── LG-TITLE-BAR (lg-) — 正文标题通栏 ── */
.lg-title-bar {
  position: relative;
  width: 100%;
  background-color: #F1F4FB;
  overflow: hidden;
  border-bottom: 1px solid #C1C7D2;
  background-image: url("../../images/single/privacypolicy/topbg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.lg-title-bar .container {
  position: relative;
  padding: clamp(32px, calc(100vw * 58 / 1920), 58px);
  padding-bottom: clamp(32px, calc(100vw * 58 / 1920), 58px);
  padding-right: clamp(360px, 34vw, 520px);
  background-image: url("../../images/single/privacypolicy/p-icon-img.png");
  background-repeat: no-repeat;
  background-position: right clamp(24px, 6vw, 120px) center;
  background-size: clamp(300px, 30vw, 360px) auto;
}

.lg-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--fs-14);
  line-height: 1.5;
  margin-bottom: clamp(12px, calc(100vw * 16 / 1920), 16px);
  color: #777C85;
}

.lg-crumb a {
  color: var(--primary);
  transition: color 0.2s;
}

.lg-crumb a:hover {
  color: var(--primary);
}

.lg-crumb > * + *::before {
  content: ">";
  margin: 0 0.45em;
  color: var(--on-surface-variant);
  pointer-events: none;
}

.lg-crumb .lg-crumb-current {
  font-weight: 100;
  color: #777C85;
}

.lg-crumb-current a {
  color: inherit;
  pointer-events: none;
}

.lg-title {
  font-size: var(--fs-block-head);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: clamp(10px, calc(100vw * 14 / 1920), 14px);
}

.lg-meta {
  font-size: var(--fs-12);
  color: #777C85;
  line-height: 1.5;
}

.lg-meta-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--outline-variant);
}

/* ── LEGAL PAGE — 页面级 ── */
body.legal-page {
  padding-top: var(--nav-height);
  background: #f8fafc;
}

body.legal-page .nav:not(.is-scrolled) {
  background: #fff;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── LG-MAIN — 双栏正文 ── */
.lg-main {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, calc(100vw * 52 / 1920), 52px);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(32px, calc(100vw * 40 / 1920), 40px) var(--container-px)
    clamp(56px, calc(100vw * 80 / 1920), 80px);
}

/* ── LG-SIDE — 左侧导航 ── */
.lg-side {
  flex-shrink: 0;
  width: clamp(220px, 15.28vw, 220px);
  position: sticky;
  top: var(--nav-height);
}

.lg-side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.lg-side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r8);
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: 1.4;
  color: var(--on-surface-variant);
  transition: background 0.2s, color 0.2s;
}

.lg-side-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--on-surface-variant);
}

.lg-side-link:hover {
  color: var(--primary);
  background: rgba(0, 87, 156, 0.04);
  font-weight: 600;
}

.lg-side-link:hover .lg-side-link-icon {
  color: var(--primary);
  font-weight: 600;
}

.lg-side-link.is-active {
  color: var(--primary);
  background: #E5E8EF;
  font-weight: 600;
}

.lg-side-link.is-active .lg-side-link-icon {
  color: var(--primary);
  font-weight: 600;
}

.lg-side-help {
  margin-top: 20px;
  padding: 18px 16px;
  background: var(--lg-bar-bg);
  border-radius: var(--r12);
  background: rgba(0, 87, 156, 0.05);
  border: 1px solid rgba(0, 64, 116, 0.1);
}

.lg-side-help-title {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.lg-side-help-desc {
  font-size: var(--fs-12);
  color: var(--on-surface-variant);
  line-height: 1.65;
  margin-bottom: 12px;
}

.lg-side-help-email {
  display: inline-block;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.lg-side-help-email:hover {
  color: var(--primary-container);
}

/* ── LG-BODY — 右侧正文卡片 ── */
.lg-body {
  flex: 1;
  min-width: 0;
}

.lg-article {
  background: #fff;
  border-radius: var(--r12);
  padding: clamp(28px, calc(100vw * 40 / 1920), 40px)
    clamp(28px, calc(100vw * 48 / 1920), 48px);
  box-shadow: 0 2px 12px rgba(0, 87, 156, 0.04);
}

.lg-section + .lg-section {
  margin-top: clamp(32px, calc(100vw * 40 / 1920), 40px);
  padding-top: clamp(32px, calc(100vw * 40 / 1920), 40px);
}

.lg-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: clamp(16px, calc(100vw * 20 / 1920), 20px);
  font-size: clamp(18px, calc(100vw * 26 / 1920), 26px);
}

.lg-section-num {
 
  font-weight: 700;
  color: var(--primary-container);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lg-section-title {
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.3;
}

.lg-section-body {
  font-size: var(--fs-14);
  color: var(--on-surface-variant);
  line-height: 1.85;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lg-section-body img,
.lg-section-body video,
.lg-section-body iframe,
.lg-section-body canvas,
.lg-section-body svg {
  max-width: 100%;
  height: auto;
}

.lg-section-body table {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lg-section-body pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.lg-section-body p + p {
  margin-top: 14px;
}

.lg-callout {
  margin-top: 20px;
  padding: 20px 20px 20px 16px;
  border-left: 4px solid var(--primary);
  border-radius: var(--r8);
  background: #F1F4FB;

}

.lg-callout-title {
  font-size: var(--fs-16);
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.4;
  margin-bottom: 8px;
}

.lg-callout p {
  font-size: var(--fs-14);
  color: var(--on-surface-variant);
  line-height: 1.75;
}

.lg-forbid-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lg-forbid-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-14);
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.lg-forbid-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
}

.lg-highlight {
  margin-bottom: 16px;
  padding: 16px 28px;
  border: 1px solid rgba(193, 199, 210, 0.5);
  border-radius: var(--r8);
  border-radius: 8px;
  background: #EBEEF5;
}

.lg-highlight p {
  font-size: var(--fs-14);
  color: var(--on-surface-variant);
  line-height: 1.75;

}

.lg-article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(32px, calc(100vw * 60 / 1920), 60px);
  padding-top: clamp(32px, calc(100vw * 60 / 1920), 60px);
  border-top: 1px solid #C1C7D2;
}

.lg-article-contact-label {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.5;
  margin-bottom: 4px;
}

.lg-article-contact-email {
  font-size: var(--fs-14);
  color: var(--on-surface-variant);
  line-height: 1.5;
}

.lg-article-contact-email a {
  color: var(--primary);
  transition: color 0.2s;
}

.lg-article-contact-email a:hover {
  color: var(--primary-container);
}

.lg-article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lg-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #727782;
  border-radius: var(--r8);
  background: #fff;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--on-surface-variant);
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lg-action-btn:hover {
  border-color: var(--primary-container);
  color: var(--primary);
  background: var(--lg-bar-bg);
}

.lg-action-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
}

.lg-action-btn:hover .lg-action-btn-icon {
  color: var(--primary);
}

@media (max-width: 768px) {
  .lg-title-bar {
    background-image: url("../../images/single/privacypolicy/topbg.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
  }

  .lg-title-bar .container {
    padding-top: 28px;
    padding-bottom: 24px;
    padding-right: 10%;
    background-image: url("../../images/single/privacypolicy/p-icon-img.png");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: clamp(118px, 34vw, 168px) auto;
  }

  .lg-title {
    font-size: clamp(22px, 5.8vw, 26px);
  }

  .lg-crumb,
  .lg-meta {
    font-size: var(--fs-12);
  }

  .lg-main {
    flex-direction: column;
    padding-top: 24px;
    gap: 20px;
  }

  .lg-side {
    width: 100%;
    position: static;
  }

  .lg-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
  }

  .lg-side-link {
    flex: 1 1 calc(50% - 4px);
    min-width: 140px;
    padding: 10px 12px;
    font-size: var(--fs-12);
  }

  .lg-article {
    padding: 24px 20px;
  }

  .lg-body,
  .lg-article,
  .lg-section-body {
    min-width: 0;
  }

  .lg-section-body {
    overflow-x: auto;
  }

  .lg-section-head {
    flex-direction: column;
    gap: 4px;
  }

  .lg-article-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .lg-article-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .lg-action-btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 140px;
  }
}

/* ── 打印：仅输出正文 article 区域 ── */
@media print {
  /* 隐藏页面其余部分，仅保留文章可见 */
  body * {
    visibility: hidden !important;
  }

  .lg-article,
  .lg-article * {
    visibility: visible !important;
  }

  .lg-article {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
  }

  /* 打印时隐藏操作按钮（打印/下载） */
  .lg-article-actions {
    display: none !important;
  }

  a[href]::after {
    content: none !important;
  }
}
