/* EE-PRODUCTION-P1-R1F-R5C-R5-LOCAL-R2
   Footer canonicalization + Contact/Demo UX only.
   No authentication, database, entitlement, order, activation or pricing behavior. */

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
}
.site-footer .footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer .footer-legal a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  opacity: .82;
}
.site-footer .footer-legal a:hover,
.site-footer .footer-legal a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

form.secure-public-form {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 43, 82, .12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(8, 29, 58, .09);
  padding: clamp(22px, 4vw, 38px);
}
form.secure-public-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #3155ff, #0f7fc0);
}
form.secure-public-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
form.secure-public-form label {
  display: grid;
  gap: 8px;
  color: #102746;
  font-weight: 750;
  line-height: 1.35;
}
form.secure-public-form input,
form.secure-public-form select,
form.secure-public-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfdbea;
  border-radius: 12px;
  background: #fbfdff;
  color: #0b1f3a;
  font: inherit;
  font-weight: 500;
  padding: 12px 14px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
form.secure-public-form textarea {
  min-height: 132px;
  resize: vertical;
}
form.secure-public-form input:focus,
form.secure-public-form select:focus,
form.secure-public-form textarea:focus {
  border-color: #3155ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(49, 85, 255, .11);
}
form.secure-public-form .button.primary {
  min-height: 48px;
  margin-top: 20px;
  padding-inline: 22px;
  border-radius: 12px;
  font-weight: 800;
}
form.secure-public-form .form-privacy-note {
  display: block;
  margin-top: 12px;
  color: #607089;
  line-height: 1.55;
}
form.secure-public-form .notice {
  margin-bottom: 18px;
  border-radius: 12px;
  padding: 13px 15px;
  line-height: 1.5;
}
form.secure-public-form .notice.success {
  border: 1px solid #b8e2c8;
  background: #f1fbf5;
  color: #145b31;
}
form.secure-public-form .notice.error {
  border: 1px solid #f0c7c7;
  background: #fff5f5;
  color: #8a1f1f;
}

@media (max-width: 720px) {
  form.secure-public-form .form-grid { grid-template-columns: 1fr; }
  .site-footer .footer-bottom { align-items: flex-start; flex-direction: column; }
}

/* R2-HF2 secure platform Contact authority. */
.r2hf2-contact-page .r2hf2-contact-shell {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
}
.r2hf2-contact-page .r2hf2-contact-copy {
  display: grid;
  gap: 16px;
}
.r2hf2-contact-page .r2hf2-contact-copy h2 { margin: 0; }
.r2hf2-contact-page .r2hf2-contact-copy p { margin: 0; color: #607089; line-height: 1.7; }
.r2hf2-contact-page .r2hf2-route-list { display: grid; gap: 12px; margin-top: 8px; }
.r2hf2-contact-page .r2hf2-route-card {
  border: 1px solid #dfe6f1;
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
}
.r2hf2-contact-page .r2hf2-route-card strong { display: block; color: #102746; margin-bottom: 5px; }
.r2hf2-contact-page .r2hf2-route-card span { display: block; color: #607089; line-height: 1.5; font-size: 14px; }
form.secure-public-form .r2hf2-span-2 { grid-column: 1 / -1; }
form.secure-public-form .r2hf2-consent {
  grid-column: 1 / -1;
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: #42536d;
  line-height: 1.55;
}
form.secure-public-form .r2hf2-consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  padding: 0;
}
form.secure-public-form .r2hf2-consent a { color: #3155ff; font-weight: 750; }
form.secure-public-form .r2hf2-form-heading { margin-bottom: 22px; }
form.secure-public-form .r2hf2-form-heading h2 { margin: 0 0 8px; }
form.secure-public-form .r2hf2-form-heading p { margin: 0; color: #607089; line-height: 1.6; }
@media (max-width: 860px) {
  .r2hf2-contact-page .r2hf2-contact-shell { grid-template-columns: 1fr; }
}


/* R2-HF3 Contact-page Privacy Policy modal. */
.r2hf3-privacy-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: #3155ff;
  font: inherit;
  font-weight: 750;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.r2hf3-privacy-trigger:hover,
.r2hf3-privacy-trigger:focus-visible { color: #1734c9; }
.r2hf3-privacy-trigger:focus-visible {
  outline: 3px solid rgba(49,85,255,.22);
  outline-offset: 3px;
  border-radius: 4px;
}
.r2hf3-privacy-dialog {
  width: min(880px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: #102746;
  box-shadow: 0 28px 90px rgba(8,29,58,.28);
}
.r2hf3-privacy-dialog::backdrop { background: rgba(8, 29, 58, .58); backdrop-filter: blur(3px); }
.r2hf3-privacy-modal { display: flex; flex-direction: column; max-height: inherit; }
.r2hf3-privacy-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #e3eaf3;
}
.r2hf3-privacy-modal-head h2 { margin: 5px 0 0; }
.r2hf3-privacy-close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #d9e2ee;
  border-radius: 12px;
  background: #f7f9fc;
  color: #102746;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.r2hf3-privacy-close:hover,
.r2hf3-privacy-close:focus-visible { background: #eef3fb; border-color: #b9cae2; }
.r2hf3-privacy-modal-body {
  overflow: auto;
  padding: 24px 26px 30px;
  color: #42536d;
  line-height: 1.7;
}
.r2hf3-privacy-modal-body > :first-child { margin-top: 0; }
.r2hf3-privacy-modal-body > :last-child { margin-bottom: 0; }
.r2hf3-privacy-modal-body h1,
.r2hf3-privacy-modal-body h2,
.r2hf3-privacy-modal-body h3 { color: #102746; }
.r2hf3-privacy-modal-body .site-header,
.r2hf3-privacy-modal-body .site-footer { display: none !important; }
.r2hf3-privacy-modal-actions {
  display: flex;
  justify-content: flex-end;
  padding: 16px 26px 22px;
  border-top: 1px solid #e3eaf3;
  background: #fbfcfe;
}
@media (max-width: 640px) {
  .r2hf3-privacy-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); border-radius: 16px; }
  .r2hf3-privacy-modal-head,
  .r2hf3-privacy-modal-body { padding-left: 18px; padding-right: 18px; }
  .r2hf3-privacy-modal-actions { padding: 14px 18px 18px; }
}
