/* =========================================================
   Shared styles for the secondary information pages
   (Copyright / Contact / Privacy / About / Cookie)
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1d1c19;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: #6a4dc8;
}

/* ===== 顶部导航 ===== */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(29, 28, 25, .08);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px clamp(20px, 5vw, 64px);
}

.legal-brand {
  color: #1d1c19;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}

.legal-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

.legal-header-nav a {
  color: #4c4a45;
  font-size: 14px;
  text-decoration: none;
}

.legal-header-nav a:hover,
.legal-header-nav a[aria-current='page'] {
  color: #6a4dc8;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(29, 28, 25, .16);
  border-radius: 999px;
  color: #1d1c19;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.legal-back:hover {
  border-color: #7a58d8;
  background: #7a58d8;
  color: #fff;
}

/* ===== Hero ===== */
.legal-hero {
  padding: 64px 0 52px;
  background: #f7f1e6;
  border-bottom: 1px solid rgba(29, 28, 25, .06);
}

.legal-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.legal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  color: #8a857c;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  list-style: none;
}

.legal-breadcrumb li::after {
  content: '/';
  margin-left: 8px;
  color: #c3bcae;
}

.legal-breadcrumb li:last-child::after {
  content: '';
  margin: 0;
}

.legal-breadcrumb a {
  color: #8a857c;
  text-decoration: none;
}

.legal-breadcrumb a:hover {
  color: #6a4dc8;
}

.legal-title {
  margin: 0;
  color: #1d1c19;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
}

.legal-lead {
  max-width: 62ch;
  margin: 16px 0 0;
  color: #4c4a45;
  font-size: 17px;
  line-height: 1.65;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 24px 0 0;
  color: #8a857c;
  font-size: 13px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legal-meta strong {
  color: #4c4a45;
  font-weight: 600;
}

/* ===== 正文布局 ===== */
.legal-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 48px) 72px;
  align-items: start;
}

.legal-article {
  min-width: 0;
  color: #3c3a35;
  font-size: 15.5px;
  line-height: 1.8;
}

.legal-article > h2 {
  margin: 48px 0 14px;
  padding-top: 6px;
  color: #1d1c19;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3.4vw, 31px);
  font-weight: 700;
  line-height: 1.25;
  scroll-margin-top: 90px;
}

.legal-article > h2:first-child {
  margin-top: 0;
}

.legal-article h3 {
  margin: 30px 0 10px;
  color: #1d1c19;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  scroll-margin-top: 90px;
}

.legal-article p {
  margin: 0 0 16px;
}

.legal-article ul,
.legal-article ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-article li {
  margin-bottom: 9px;
}

.legal-article li:last-child {
  margin-bottom: 0;
}

.legal-article strong {
  color: #1d1c19;
  font-weight: 700;
}

.legal-article a {
  text-underline-offset: 3px;
}

/* 卡片 */
.legal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0 8px;
}

.legal-card {
  padding: 20px 22px;
  border-radius: 14px;
  background: #f7f1e6;
}

.legal-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.legal-card p {
  margin: 0;
  color: #5a564d;
  font-size: 14px;
  line-height: 1.65;
}

/* 高亮块 */
.legal-callout {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid #7a58d8;
  border-radius: 0 12px 12px 0;
  background: #f4f0fb;
  color: #3c3a35;
  font-size: 15px;
  line-height: 1.75;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.legal-callout strong {
  color: #4a35a0;
}

/* 表格 */
.legal-table-wrap {
  margin: 22px 0 26px;
  overflow-x: auto;
  border: 1px solid #e7e0d2;
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.legal-table th,
.legal-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0eade;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #f7f1e6;
  color: #1d1c19;
  font-weight: 700;
  white-space: nowrap;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

/* 步骤 / 编号列表 */
.legal-steps {
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.legal-steps li {
  position: relative;
  margin: 0 0 18px;
  padding-left: 46px;
  counter-increment: step;
}

.legal-steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1d1c19;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.legal-steps li strong {
  display: block;
  margin-bottom: 2px;
}

/* 侧边目录 */
.legal-aside {
  position: sticky;
  top: 92px;
  padding: 22px 24px;
  border: 1px solid #ece5d8;
  border-radius: 16px;
  background: #fffdf8;
}

.legal-aside-title {
  margin: 0 0 12px;
  color: #8a857c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-toc {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc li {
  margin-bottom: 8px;
}

.legal-toc a {
  display: block;
  padding: 4px 0;
  color: #4c4a45;
  font-size: 13.5px;
  line-height: 1.5;
  text-decoration: none;
}

.legal-toc a:hover {
  color: #6a4dc8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-aside-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #f0eade;
  color: #8a857c;
  font-size: 12.5px;
  line-height: 1.65;
}

.legal-aside-note a {
  text-decoration: none;
}

/* 页面底部返回链接 */
.legal-endnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #ece5d8;
}

.legal-endnav a {
  padding: 10px 18px;
  border: 1px solid #e0d8c8;
  border-radius: 999px;
  color: #3c3a35;
  font-size: 13.5px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.legal-endnav a:hover {
  border-color: #7a58d8;
  background: #7a58d8;
  color: #fff;
}

/* ===== 站点页脚 ===== */
.site-footer {
  padding: 52px 0 34px;
  background: #1d1c19;
  color: #ece6da;
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 64px);
}

.site-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
}

.site-footer-brand-name {
  margin: 0;
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.site-footer-tagline {
  max-width: 34ch;
  margin: 8px 0 0;
  color: #a8a192;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer-nav a {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #ece6da;
  font-size: 14px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible,
.site-footer-nav a[aria-current='page'] {
  border-color: #7a58d8;
  background: #7a58d8;
  color: #fff;
  outline: none;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 22px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #8f8879;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer-bottom p {
  margin: 0;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .legal-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .legal-aside {
    position: static;
    order: -1;
  }

  .legal-toc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 20px;
  }
}

@media (max-width: 560px) {
  .legal-header-inner {
    flex-wrap: wrap;
  }

  .legal-header-nav {
    display: none;
  }

  .legal-hero {
    padding: 44px 0 38px;
  }

  .legal-lead {
    font-size: 16px;
  }

  .legal-wrap {
    padding-top: 40px;
  }

  .legal-article {
    font-size: 15px;
  }

  .site-footer-nav a {
    padding: 9px 15px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .legal-back,
  .site-footer-nav a,
  .legal-endnav a {
    transition: none;
  }
}
