@media (max-width: 767px) {
  #rodape {
    width:calc(100% - 32px);
    max-width:540px;
    padding:0 0 14px;
    border-top:0;
    color:#e9f1ff;
    font-family:Barlow,Arial,sans-serif;
  }

  #rodape .footer-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:15px;
    padding:18px 0 11px;
  }

  #rodape .footer-identity { grid-column:auto; }
  #rodape .footer-identity .brand { min-height:44px; }
  #rodape .footer-grid p { margin:5px 0 0; font-size:14px; line-height:1.35; }
  #rodape .footer-identity p br { display:none; }
  #rodape .footer-signature { display:none; }

  #rodape .footer-student {
    padding:11px;
    border:1px solid #284463;
    border-radius:7px;
    background:#0e1d31;
  }
  #rodape .footer-grid h3 { margin:0 0 5px; font-size:11px; }
  #rodape .footer-student p { margin:0 0 9px; color:#b5c9e3; }
  #rodape .footer-student .footer-login {
    min-height:44px;
    align-items:center;
    padding:7px 10px;
    gap:8px;
    background:#175fc7;
    border-color:#4b93ee;
    color:#fff;
    font-weight:700;
  }
  #rodape .footer-login:hover { transform:none; background:#1a6edb; }
  #rodape .footer-student button { min-height:44px; padding:0; font-size:13px; }

  #rodape .footer-grid > nav {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
    gap:0 10px;
  }
  #rodape .footer-grid > nav h3 { grid-column:1/-1; }
  #rodape .footer-grid > nav a {
    display:flex;
    align-items:center;
    min-height:44px;
    padding:4px 0;
    border-bottom:1px solid #213650;
    font-size:13px;
    line-height:1.25;
  }

  #rodape .footer-bottom {
    display:grid;
    gap:2px;
    padding-top:9px;
    font-size:12px;
    color:#a1b7d0;
  }
  #rodape .footer-bottom nav { gap:4px 12px; flex-wrap:wrap; }
  #rodape .footer-bottom nav > * {
    display:inline-flex;
    min-height:44px;
    align-items:center;
    color:#a8c5e8;
    font:inherit;
  }
}


@media (min-width:768px) {
  #rodape .footer-grid > nav {grid-column:2;grid-row:1}
  #rodape .footer-student {grid-column:3;grid-row:1}
}
