/* Footer policy link and the popup it opens (js/policy-popup.js). The markdown content styles mirror css/policy.css,
   scoped to .policy-modal-body because css/policy.css is only loaded on the full page policy.html. */

/* Gray footer link(s) on the search pages (index.html) */
.site-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 18px 16px 24px;
}
.policy-link {
  color: #70757a; /* Google-style gray footer link */
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  text-decoration: none;
}
.policy-link:hover { text-decoration: underline; }

/* Modal overlay */
.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(32, 33, 36, 0.5);
}
.policy-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.policy-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #5f6368;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.policy-modal-close:hover { background: #f1f3f4; }

/* Markdown content inside the popup (mirrors css/policy.css .policy rules) */
.policy-modal-body {
  padding: 44px 32px 32px;
  color: #202124;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.policy-modal-body h1, .policy-modal-body h2, .policy-modal-body h3 { line-height: 1.25; }
.policy-modal-body a { color: #1a0dab; }
.policy-modal-body blockquote { margin: 16px 0; padding-left: 16px; border-left: 3px solid #dfe1e5; color: #4d5156; }
.policy-modal-body code { padding: 1px 4px; background: #f8f9fa; border-radius: 3px; font-size: 14px; }
.policy-modal-body hr { border: 0; border-top: 1px solid #dfe1e5; margin: 24px 0; }
