:root {
  --policy-ink: #4d4664;
  --policy-copy: #706b80;
  --policy-purple: #75629d;
  --policy-blue: #b9dcfa;
  --policy-pink: #f4bfd7;
  --policy-line: rgba(255, 255, 255, .84);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #e8f4ff; }
body {
  margin: 0;
  color: var(--policy-ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(151, 202, 248, .7), transparent 24%),
    radial-gradient(circle at 92% 20%, rgba(250, 171, 207, .62), transparent 25%),
    linear-gradient(155deg, #d9edff 0%, #fff 43%, #ffe2ef 72%, #deefff 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}
html[lang="zh-Hant"] body { font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", Arial, sans-serif; }
html[lang="ja"] body { font-family: "Yu Gothic", "Hiragino Sans", "Noto Sans JP", Arial, sans-serif; }
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  background-image: radial-gradient(rgba(93, 142, 190, .42) .8px, transparent .8px);
  background-size: 12px 12px;
  mask-image: linear-gradient(145deg, #000, transparent 43%, transparent 68%, rgba(0,0,0,.5));
}
a { color: inherit; text-decoration: none; }

.policy-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.88);
  background: rgba(255,255,255,.66);
  box-shadow: 0 8px 28px rgba(66,84,116,.1);
  backdrop-filter: blur(22px) saturate(145%);
}
.brand { position: relative; display: flex; flex: 0 0 96px; align-self: stretch; align-items: center; }
.brand-mark { position: absolute; top: 1px; left: -12px; display: block; width: 96px; height: 72px; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand > span:last-child { display: none; }
.tools { display: flex; align-items: center; gap: 15px; }
.back-link, .lang-button {
  min-height: 38px;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  color: var(--policy-ink);
  background: rgba(255,255,255,.56);
  box-shadow: 0 6px 18px rgba(68,82,112,.08);
  backdrop-filter: blur(14px);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.lang-button.is-active { background: linear-gradient(110deg, rgba(170,213,249,.88), rgba(249,190,216,.84)); }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 74px 0 96px; }
.hero { padding: 12px 8px 34px; text-align: center; }
.hero .eyebrow { margin: 0 0 12px; color: var(--policy-purple); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; color: var(--policy-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 7vw, 76px); font-weight: 500; letter-spacing: 0; line-height: 1.05; }
.hero > p:last-child { display: none; }
.policy-shell { padding: 0; }
.policy-card {
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--policy-line);
  border-radius: 24px;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 22px 58px rgba(62,79,112,.14);
  backdrop-filter: blur(28px) saturate(135%);
}
.policy-content { color: var(--policy-copy); font-size: 15px; line-height: 1.88; overflow-wrap: anywhere; }
.policy-content > h1:first-child { display: none; }
.policy-content h1, .policy-content h2, .policy-content h3 { color: var(--policy-ink); letter-spacing: 0; }
.policy-content h2 { margin: 54px 0 18px; padding-top: 8px; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; }
.policy-content h3 { margin: 34px 0 14px; font-size: 19px; }
.policy-content p { margin: 0 0 18px; }
.policy-content ul { margin: 0 0 20px; padding-left: 23px; }
.policy-content li + li { margin-top: 8px; }
.table-wrap { margin: 26px -8px 38px; overflow-x: auto; }
table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0 10px; font-size: 13px; line-height: 1.65; }
th { padding: 0 15px 5px; color: #817b8e; background: transparent; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-align: left; vertical-align: bottom; }
td { padding: 17px 15px; border-top: 1px solid rgba(255,255,255,.9); border-bottom: 1px solid rgba(255,255,255,.9); color: var(--policy-copy); background: rgba(255,255,255,.58); box-shadow: 0 10px 24px rgba(63,80,110,.06); text-align: left; vertical-align: top; backdrop-filter: blur(16px); }
td:first-child { width: 16%; border-left: 1px solid rgba(255,255,255,.9); border-radius: 14px 0 0 14px; color: var(--policy-ink); font-weight: 800; }
td:nth-child(2) { width: 31%; }
td:nth-child(3) { width: 20%; }
td:nth-child(4) { width: 16%; }
td:last-child { width: 17%; border-right: 1px solid rgba(255,255,255,.9); border-radius: 0 14px 14px 0; }
.policy-content td a { color: #607aa0; text-decoration: underline; text-decoration-color: rgba(96,122,160,.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px clamp(20px, 6vw, 82px); border-top: 1px solid rgba(255,255,255,.82); color: #756f83; background: rgba(255,255,255,.58); backdrop-filter: blur(18px); font-size: 13px; }

.language-menu { position: relative; order: 3; }
.language-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  color: var(--policy-ink);
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 20px rgba(77,92,125,.1);
  place-items: center;
  cursor: pointer;
  list-style: none;
  backdrop-filter: blur(18px) saturate(140%);
}
.language-toggle::-webkit-details-marker { display: none; }
.language-toggle span { font-size: 18px; line-height: 1; }
.language-toggle:focus-visible { outline: 3px solid rgba(111,162,222,.28); outline-offset: 2px; }
.language-menu[open] .language-toggle { background: linear-gradient(120deg, rgba(208,233,255,.9), rgba(255,216,234,.88)); }
.language-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 166px;
  padding: 9px;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.94);
  border-radius: 13px;
  background: rgba(250,252,255,.78);
  box-shadow: inset 0 1px 0 #fff, 0 16px 36px rgba(66,78,111,.16);
  backdrop-filter: blur(24px) saturate(145%);
}
.language-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 10px 13px;
  border: 0;
  border-radius: 9px;
  color: #777285;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.language-option:hover, .language-option:focus-visible { color: var(--policy-ink); background: rgba(219,238,255,.58); box-shadow: inset 0 0 0 1px rgba(164,202,236,.36); outline: none; }
.language-option.is-active { color: var(--policy-ink); background: linear-gradient(110deg, rgba(198,228,255,.84), rgba(255,211,231,.8)); box-shadow: inset 0 0 0 1px rgba(214,160,191,.38), inset 0 1px 0 rgba(255,255,255,.9); }
.language-option.is-active:hover { background: linear-gradient(110deg, rgba(188,221,250,.9), rgba(252,198,224,.86)); box-shadow: inset 0 0 0 1px rgba(196,139,175,.48), inset 0 1px 0 rgba(255,255,255,.9); }

@media (max-width: 640px) {
  .policy-header { height: 62px; padding: 0 14px; }
  .brand { flex-basis: 76px; }
  .brand-mark { top: 2px; left: -8px; width: 76px; height: 57px; }
  .tools { gap: 10px; }
  .back-link, .lang-button { min-height: 34px; padding: 7px 10px; font-size: 12px; }
  .language-toggle { width: 36px; height: 36px; }
  .language-popover { right: -2px; }
  main { width: calc(100% - 24px); padding: 48px 0 68px; }
  .hero { padding-bottom: 26px; }
  .hero h1 { font-size: 42px; }
  .policy-card { padding: 24px 20px; border-radius: 20px; }
  .policy-content { font-size: 14px; line-height: 1.8; }
  .policy-content h2 { margin-top: 42px; font-size: 25px; }
  .table-wrap { margin-right: 0; margin-left: 0; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; min-width: 0; }
  table { border-spacing: 0; }
  thead { display: none; }
  tbody { display: grid; gap: 14px; }
  tr { overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 17px; background: rgba(255,255,255,.58); box-shadow: 0 12px 28px rgba(61,78,109,.09); backdrop-filter: blur(18px); }
  td, td:first-child, td:nth-child(2), td:nth-child(3), td:nth-child(4), td:last-child { width: 100%; padding: 13px 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  td + td { border-top: 1px solid rgba(116,111,139,.1); }
  td::before { display: block; margin-bottom: 4px; color: #9a91a7; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  html[lang="zh-CN"] td:nth-child(1)::before { content: "SDK"; }
  html[lang="zh-CN"] td:nth-child(2)::before { content: "涉及信息"; }
  html[lang="zh-CN"] td:nth-child(3)::before { content: "使用目的"; }
  html[lang="zh-CN"] td:nth-child(4)::before { content: "处理方式"; }
  html[lang="zh-CN"] td:nth-child(5)::before { content: "隐私政策"; }
  html[lang="zh-Hant"] td:nth-child(1)::before { content: "SDK"; }
  html[lang="zh-Hant"] td:nth-child(2)::before { content: "涉及資訊"; }
  html[lang="zh-Hant"] td:nth-child(3)::before { content: "使用目的"; }
  html[lang="zh-Hant"] td:nth-child(4)::before { content: "處理方式"; }
  html[lang="zh-Hant"] td:nth-child(5)::before { content: "隱私權政策"; }
  html[lang="ja"] td:nth-child(1)::before { content: "SDK"; }
  html[lang="ja"] td:nth-child(2)::before { content: "対象データ"; }
  html[lang="ja"] td:nth-child(3)::before { content: "利用目的"; }
  html[lang="ja"] td:nth-child(4)::before { content: "処理方法"; }
  html[lang="ja"] td:nth-child(5)::before { content: "プライバシーポリシー"; }
  html[lang="en"] td:nth-child(1)::before { content: "SDK"; }
  html[lang="en"] td:nth-child(2)::before { content: "Data involved"; }
  html[lang="en"] td:nth-child(3)::before { content: "Purpose"; }
  html[lang="en"] td:nth-child(4)::before { content: "Processing"; }
  html[lang="en"] td:nth-child(5)::before { content: "Privacy policy"; }
  .site-footer { align-items: center; flex-direction: column; text-align: center; }
}
