.rb-legal-footer.page-footer,
.rb-legal-footer.portal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-top: 23px;
  padding-bottom: 25px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
  color: #58717a;
}
.rb-footer-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rb-footer-brand > img { width: 42px; height: 42px; flex: 0 0 42px; }
.rb-footer-brand > div { min-width: 0; }
.rb-footer-copyright { display: block; font-weight: 650; color: #274d5b; }
.rb-footer-credit { display: block; margin-top: 2px; }
.rb-legal-footer button[data-rb-info] {
  appearance: none;
  border: 0;
  padding: 3px 0;
  background: none;
  color: #166c80;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  text-underline-offset: 4px;
}
.rb-legal-footer button[data-rb-info]:hover { text-decoration: underline; }
.rb-footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 20px; }
.rb-footer-actions .rb-footer-admin { padding: 3px 0; color: #58717a; font: inherit; font-weight: 500; letter-spacing: 0; text-decoration: none; text-underline-offset: 4px; }
.rb-footer-actions .rb-footer-admin:hover { color: #166c80; text-decoration: underline; }
.rb-footer-data-status { flex-basis: 100%; padding-top: 3px; font-size: 11px; color: #607c86; }
.rb-legal-footer--home.portal-footer { border-top: 1px solid #9bc9d52b; color: #9fbac4; }
.rb-legal-footer--home .rb-footer-copyright { color: #d1e5e9; }
.rb-legal-footer--home button[data-rb-info] { color: #95dbe3; }
.rb-legal-footer--home .rb-footer-actions .rb-footer-admin { color: #9fbac4; }
.rb-legal-footer--home .rb-footer-actions .portal-secondary { margin: 0; padding: 5px 0; font-size: 12px; color: #b8d3db; }
.rb-legal-footer :focus-visible,
.rb-info-dialog :focus-visible { outline: 3px solid #d5ad59; outline-offset: 5px; border-radius: 4px; }

.rb-info-dialog {
  box-sizing: border-box;
  padding: 0;
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  max-height: min(90vh, 920px);
  max-height: min(90dvh, 920px);
  border: 1px solid #5d909b66;
  border-radius: 22px;
  background: #102b37;
  color: #d9e6eb;
  box-shadow: 0 32px 100px #00101866;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  overflow: hidden;
  color-scheme: dark;
}
.rb-info-dialog::backdrop { background: #03131ed1; backdrop-filter: blur(5px); }
.rb-info-dialog[open] { animation: rb-dialog-appear 170ms ease-out; }
.rb-dialog-layout { display: flex; flex-direction: column; max-height: min(90vh, 920px); max-height: min(90dvh, 920px); }
.rb-dialog-header {
  position: relative;
  flex-shrink: 0;
  padding: 26px 32px 24px;
  overflow: hidden;
  border-bottom: 1px solid #82c6d029;
  background: radial-gradient(ellipse at 100% 0%, #2574847a, transparent 65%), linear-gradient(120deg, #0a202c, #103a46);
}
.rb-dialog-header::after {
  position: absolute;
  right: 68px;
  top: -38px;
  width: 215px;
  height: 215px;
  content: '';
  background: url('/assets/rb-tantalita-atom.svg') center/contain no-repeat;
  opacity: .09;
  pointer-events: none;
}
.rb-dialog-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.rb-dialog-brand > img { width: 38px; height: 38px; }
.rb-dialog-brand > span { font-size: 10px; letter-spacing: 1.5px; font-weight: 700; color: #e0eeed; }
.rb-dialog-brand small { display: block; margin-top: 3px; font-size: 10px; letter-spacing: .4px; font-weight: 400; color: #a1c2cc; }
.rb-dialog-header .rb-dialog-eyebrow { position: relative; z-index: 1; margin: 0 0 6px; color: #7cd6df; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.5; }
.rb-dialog-header h2 { position: relative; z-index: 1; margin: 0; font-size: clamp(24px, 4vw, 30px); line-height: 1.25; color: #f4f9f8; font-weight: 750; letter-spacing: -.5px; }
.rb-dialog-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #92c4cb38;
  border-radius: 50%;
  color: #d4e8eb;
  background: #09242d99;
  font: 28px/1 'Segoe UI', sans-serif;
  cursor: pointer;
}
.rb-dialog-close:hover { background: #1a5260; }
.rb-dialog-body { overflow: auto; overscroll-behavior: contain; min-height: 0; padding: 26px 32px 14px; scrollbar-color: #507e8b #102b37; }
.rb-notice-intro { padding: 17px 19px; border: 1px solid #6abac938; border-radius: 13px; background: #123b4873; margin-bottom: 24px; }
.rb-notice-tag { color: #82d4dc; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.rb-notice-intro > p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: #d4e8ec; }
.rb-notice-section { margin: 0 0 25px; }
.rb-notice-section h3 { margin: 0 0 9px; font-size: 13px; line-height: 1.5; font-weight: 750; color: #7cdae3; }
.rb-notice-section p { margin: 0 0 10px; color: #bacfd8; font-size: 13px; line-height: 1.85; }
.rb-notice-section strong { color: #eef5f5; font-weight: 650; }
.rb-contact-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.rb-contact-links a { color: #8cdae2; font-size: 13px; line-height: 1.6; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.rb-notice-updated { padding-top: 12px; border-top: 1px solid #89b5c124; color: #91aeb9; font-size: 11px; line-height: 1.6; }
.rb-dialog-bottom { flex-shrink: 0; padding: 13px 32px 18px; border-top: 1px solid #89b5c11c; display: flex; justify-content: flex-end; background: #102b37; }
.rb-dialog-done { appearance: none; padding: 9px 20px; border: 1px solid #71bfc951; border-radius: 8px; background: #1b5361; font: 600 12px/1.5 'DM Sans', 'Segoe UI', sans-serif; color: #e5f4f6; cursor: pointer; }
.rb-dialog-done:hover { background: #216a7a; }

.rb-info-dialog--profile { width: min(460px, calc(100vw - 32px)); }
.rb-info-dialog--profile .rb-dialog-header { padding-bottom: 27px; }
.rb-info-dialog--profile .rb-dialog-body { padding: 23px 28px 7px; }
.rb-profile-card { text-align: center; }
.rb-profile-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  border: 1px solid #8ee3e561;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d697a, #143d4c);
  box-shadow: 0 0 0 7px #80d2dd0d;
  color: #e8f9fa;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 2px;
}
.rb-profile-role { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #eef5f6; }
.rb-profile-project { margin: 0 0 23px; font-size: 12px; line-height: 1.6; color: #98b9c5; }
.rb-profile-email { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px 9px 15px; border: 1px solid #729cac33; border-radius: 10px; background: #1d3d4e; }
.rb-profile-email > a { color: #e0edf0; font-size: 13px; text-decoration: none; overflow-wrap: anywhere; text-align: left; }
.rb-profile-email > a:hover { text-decoration: underline; }
.rb-profile-email > button { border: 0; background: none; color: #a4c5d0; padding: 7px; cursor: pointer; flex-shrink: 0; }
.rb-profile-email svg,
.rb-profile-linkedin > svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rb-profile-linkedin { display: flex; align-items: center; gap: 12px; justify-content: center; border: 1px solid #7ccbd74a; padding: 13px 12px; margin-top: 11px; border-radius: 10px; text-decoration: none; color: #d4eef2; font-size: 12px; font-weight: 600; }
.rb-profile-linkedin:hover { border-color: #83d8e1; background: #1b4554; }
.rb-linkedin-mark { font: 700 17px/1 Arial, sans-serif; color: #80dce6; }
.rb-profile-linkedin > svg { width: 15px; height: 15px; margin-left: auto; }
.rb-copy-status { min-height: 18px; font-size: 11px; color: #91ded1; line-height: 1.6; margin: 7px 0 11px; }
.rb-profile-note { font-size: 11px; line-height: 1.7; color: #9bb6c2; margin: 0 0 13px; }

@keyframes rb-dialog-appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .rb-legal-footer.page-footer,
  .rb-legal-footer.portal-footer { flex-direction: column; align-items: flex-start; gap: 13px; font-size: 11px; }
  .rb-legal-footer.portal-footer { padding: 22px 22px 26px; }
  .rb-footer-brand { gap: 10px; }
  .rb-footer-brand > img { width: 34px; height: 34px; flex-basis: 34px; }
  .rb-footer-copyright { font-size: 11px; }
  .rb-footer-actions { gap: 6px 20px; }
  .rb-legal-footer button[data-rb-info] { min-height: 30px; }
  .rb-footer-actions .rb-footer-admin { display: inline-flex; align-items: center; min-height: 30px; }
  .rb-footer-data-status { font-size: 10px; }
}
@media (max-width: 480px) {
  .rb-info-dialog { width: calc(100vw - 20px); max-height: 92vh; max-height: 92dvh; border-radius: 17px; }
  .rb-dialog-layout { max-height: 92vh; max-height: 92dvh; }
  .rb-dialog-header { padding: 21px 22px 21px; }
  .rb-dialog-brand { margin-bottom: 19px; padding-right: 30px; }
  .rb-dialog-close { top: 12px; right: 12px; }
  .rb-dialog-body { padding: 21px 22px 10px; }
  .rb-dialog-bottom { padding: 12px 22px 16px; }
  .rb-notice-intro { padding: 15px; }
  .rb-notice-section p { font-size: 13px; }
  .rb-info-dialog--profile .rb-dialog-body { padding-left: 22px; padding-right: 22px; }
}
@media (prefers-reduced-motion: reduce) { .rb-info-dialog[open] { animation: none; } }
