/* 与 NavBar.vue、隐私/协议页 scoped 样式对齐，供独立 HTML 使用 */

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.page-service-agreement {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-service-agreement--privacy {
  /* 对应 theme 中 --color-bg-page-alt 的浅色语义 */
  background: #f7f8fc;
}

.nav-container {
  width: 100%;
  height: 80px;
  text-align: center;
  position: relative;
  padding-left: 10px;
  /* 默认兜底（非刘海屏） */
  padding-top: 44px;
  /* 更稳的 safe-area：在 iOS 键盘/视口变化后依旧保持顶部间距正确 */
  padding-top: max(44px, env(safe-area-inset-top, 0px));
  z-index: 1000;
}

.nav-btn {
  border: none;
  padding: 10px;
  color: #333;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: absolute;
  left: 0;
  bottom: -6px;
}

.nav-btn svg {
  width: 32px;
  height: 32px;
}

.nav-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nav-title {
  flex: 1;
  text-align: center;
  font-weight: 500;
  font-size: 18px;
  color: #333333;
  letter-spacing: 0.05em;
  margin: 0 0 0 -10px;
}

.service-content {
  flex: 1;
  height: calc(100vh - 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 12px 12px 24px;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 14px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  font-size: 14px;
  color: #111827;
  line-height: 1.6;
}

.service-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 12px;
}

.service-subtitle {
  font-size: 15px;
  font-weight: 600;
  margin: 14px 0 6px;
}

.service-paragraph {
  margin: 4px 0;
  color: #4b5563;
}

.service-paragraph--footer {
  margin-top: 12px;
}
