/*
 * 协议页（privacy / terms / agreement）套用的官网外壳：顶部导航 + 页脚。
 *
 * 结构（HTML）由 scripts/sync_legal_chrome.cjs 从 site/index.html 原样拷进协议页，
 * 这里的样式抄自 index.html 内联 <style> 的对应段落——改首页导航 / 页脚的样式时这里要跟着改。
 * 全部限定在 .nav / .site-footer 之下：协议页自己的 a、h1、footer 规则不能被波及，反之亦然。
 */
.nav {
  --stroke: rgba(255,255,255,0.10);
  --muted: #a79fc4;
  --font-display: "Sora", "PingFang SC", "Microsoft YaHei", sans-serif;
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7,7,12,.78);
  border-bottom: 1px solid var(--stroke);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}
.nav *, .site-footer * { box-sizing: border-box; }
.nav .wrap, .site-footer .wrap { width: min(100% - 2rem, 1140px); margin-inline: auto; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.nav .brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; text-decoration: none; font-size: 1.05rem; font-family: var(--font-display); }
.nav .brand-mark { width: 36px; height: 36px; border-radius: 11px; overflow: hidden; border: 1px solid var(--stroke); flex-shrink: 0; }
.nav .brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-links { display: flex; align-items: center; gap: .45rem 1.05rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; word-break: normal; }
.nav-links a:hover, .nav-links a:focus { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav .lang-select {
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: #fff;
  border-radius: 999px;
  padding: .28rem .75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  font-size: .8rem;
  max-width: 9.5rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  padding-right: 1.4rem;
}
.nav .lang-select option { color: #111; background: #fff; }
.nav .lang-select:hover { border-color: rgba(255,255,255,.3); }
.nav svg { display: block; }
.nav .appstore-badge { display: inline-flex; height: 32px; transition: transform .15s ease; vertical-align: middle; }
.nav .appstore-badge svg { height: 100%; width: auto; display: block; }
.nav a:hover .appstore-badge { transform: translateY(-2px); }
.nav .appstore-badge-row { display: inline-flex; align-items: center; line-height: 0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

.site-footer {
  margin-top: 2rem; padding: 2.2rem 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  color: #a79fc4; font-size: .9rem; line-height: 1.7; text-align: left;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.site-footer p { margin: 0; color: inherit; }
.site-footer a { color: #cbbdff; text-decoration: none; font-weight: 600; word-break: normal; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.4rem; }
.site-footer h4 { color: #fff; font-family: "Sora", "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0 0 .5rem; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; color: inherit; }
.site-footer li { margin-bottom: .35rem; }
.site-footer .beian { text-align: center; margin-top: 1.1rem; font-size: .85rem; }

@media (max-width: 960px) {
  .nav-links .hide-sm { display: none; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
