:root {
  color: #172b4d;
  background: #f4f7fb;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: #1769d2; text-underline-offset: 3px; }
a:hover { color: #0d4fa7; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  border-radius: 6px;
  background: #172b4d;
  color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.legal-site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(38, 124, 245, .12);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}
.legal-brand { display: inline-flex; align-items: center; gap: 9px; color: #172b4d; font-weight: 760; text-decoration: none; }
.legal-brand img { width: 27px; height: 27px; }
.legal-site-header nav { display: flex; gap: 24px; }
.legal-site-header nav a { color: #51627a; font-size: 14px; text-decoration: none; }

.legal-page { min-height: calc(100vh - 128px); padding: 54px 24px 72px; }
.terms-container, .privacy-container {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 68px);
  border: 1px solid rgba(38, 124, 245, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(39, 72, 120, .09);
}
.privacy-container { display: block; }
.terms-header, .privacy-header { margin-bottom: 38px; padding-bottom: 26px; border-bottom: 1px solid #e7edf5; }
.document-kicker { margin: 0 0 12px; color: #267cf5; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0 0 16px; color: #11213d; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; letter-spacing: -.035em; }
.document-dates { display: flex; flex-wrap: wrap; gap: 8px 24px; color: #718096; font-size: 13px; }
.document-dates p { margin: 0; }
.terms-content, .privacy-content { color: #334761; font-size: 15px; line-height: 1.92; }
.terms-content section, .privacy-content section { margin-top: 35px; }
h2 { margin: 0 0 14px; color: #172b4d; font-size: 20px; line-height: 1.5; }
h3 { margin: 24px 0 9px; color: #203a60; font-size: 16px; }
p { margin: 0 0 13px; }
ul, ol { margin: 10px 0 15px; padding-left: 1.45em; }
li { margin: 7px 0; padding-left: .2em; }
.legal-notice, .policy-intro {
  padding: 18px 20px;
  border: 1px solid #cfe0fb;
  border-left: 4px solid #267cf5;
  border-radius: 8px;
  background: #f6f9ff;
}
.policy-intro { border-color: #e0e7ef; border-left-color: #89a4c8; background: #f8fafc; }
.policy-table-wrap { margin: 18px 0; overflow-x: auto; border: 1px solid #dfe7f2; border-radius: 10px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; line-height: 1.65; }
th, td { padding: 13px 14px; border-right: 1px solid #e6edf5; border-bottom: 1px solid #e6edf5; text-align: left; vertical-align: top; }
th { color: #203a60; background: #f3f7fc; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
th:last-child, td:last-child { border-right: 0; }

.legal-site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  min-height: 64px;
  padding: 20px 24px;
  color: #718096;
  font-size: 12px;
}

@media (max-width: 640px) {
  .legal-site-header { min-height: 56px; padding: 0 16px; }
  .legal-site-header nav { gap: 12px; }
  .legal-site-header nav a { font-size: 12px; }
  .legal-page { padding: 22px 12px 48px; }
  .terms-container, .privacy-container { padding: 25px 18px; border-radius: 12px; }
  .terms-content, .privacy-content { font-size: 14px; line-height: 1.85; }
  h2 { font-size: 18px; }
}
