/* ──────────────────────────────────────────────────────────
   用户协议、隐私政策与同意拦截样式表
   ────────────────────────────────────────────────────────── */

/* 登录页协议勾选行 */
.auth-legal-checkbox-row {
  margin: 16px 0 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
}

.auth-legal-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.auth-legal-checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--primary-color, #1a73e8);
}

.auth-legal-checkbox-label a {
  color: var(--primary-color, #1a73e8);
  text-decoration: none;
  font-weight: 500;
}

.auth-legal-checkbox-label a:hover {
  text-decoration: underline;
}

/* 协议文本独立 Dialog 弹窗 */
#legalDocDialog {
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  padding: 0;
  width: 90%;
  max-width: 640px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}

#legalDocDialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.legal-dialog-header {
  padding: 16px 24px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-dialog-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.legal-dialog-header .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  padding: 0 4px;
  line-height: 1;
}

.legal-dialog-header .close-btn:hover {
  color: #333;
}

.legal-dialog-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

.legal-dialog-body h3 {
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #111;
  border-left: 3px solid var(--primary-color, #1a73e8);
  padding-left: 8px;
}

.legal-dialog-body p {
  margin-bottom: 12px;
}

.legal-dialog-body ul {
  margin-bottom: 12px;
  padding-left: 20px;
}

.legal-dialog-body li {
  margin-bottom: 6px;
}

.legal-dialog-footer {
  padding: 12px 24px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

/* 重新同意拦截 Modal 遮罩层 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-overlay.is-hidden {
  display: none !important;
}

.reconsent-card {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 580px;
  max-height: 85vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reconsent-header {
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.reconsent-header h3 {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  color: #d93025; /* 警告醒目红 */
}

.reconsent-header p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.reconsent-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

.reconsent-body .warn-box {
  background: #fdf6f6;
  border: 1px solid #fde8e8;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #c92a2a;
  font-size: 0.9rem;
  font-weight: 500;
}

.reconsent-links {
  margin: 20px 0;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reconsent-links a {
  color: var(--primary-color, #1a73e8);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reconsent-links a:hover {
  text-decoration: underline;
}

.reconsent-footer {
  padding: 16px 24px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reconsent-confirm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #333;
}

.reconsent-confirm-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color, #1a73e8);
}

.reconsent-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* 补充 app.js 常设入口样式 */
.settings-legal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.settings-legal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.settings-legal-item:hover {
  background: #eef2f6;
  color: var(--primary-color, #1a73e8);
}
