/* Public portal footer: same branding and company content as the main footer. */
body.family-login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.family-login .fa-shell { flex: 1 0 auto; margin: 0 auto; }
.family-portal-footer { flex-shrink: 0; padding: 20px 18px; text-align: center; font-size: 13px; color: #526578; background: #f8fafc; border-top: 1px solid #d7e1e6; }
.footer-school-help { margin: 0 0 12px; font-size: 14px; color: #334155; }
.footer-legal-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    justify-content: center;
    margin-bottom: 4px;
}

.footer-legal-links a {
    color: #0b1f4d;
    text-decoration: none;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus {
    color: #174ea6;
    text-decoration: underline;
}

.footer-developer-credit {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.footer-company-link {
    align-items: center;
    background: transparent;
    border: 0;
    color: #0b1f4d;
    cursor: pointer;
    display: inline-flex;
    gap: 6px;
    font: inherit;
    font-weight: 900;
    padding: 0;
    text-decoration: underline;
    text-decoration-color: rgba(11, 31, 77, .34);
    text-underline-offset: 3px;
}

.footer-company-logo {
    background: #fff;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 4px;
    height: 22px;
    object-fit: contain;
    padding: 2px 4px;
    width: 44px;
}

.footer-company-link:hover,
.footer-company-link:focus {
    color: #174ea6;
    text-decoration-color: currentColor;
}

.trwsoft-legal-modal .modal-content {
    background: #ffffff;
    border: 1px solid #cbd8e6;
    border-radius: 12px;
    box-shadow: 0 26px 80px rgba(15, 23, 42, .24);
    color: #1e293b;
    overflow: hidden;
}

.trwsoft-legal-modal .modal-header {
    align-items: center;
    background: #eef6ff;
    border-bottom: 1px solid #d7e5f3;
    color: #0b1f4d;
    padding: 17px 20px;
}

.trwsoft-legal-brand {
    align-items: center;
    display: flex;
    gap: 13px;
    min-width: 0;
}

.trwsoft-legal-brand img {
    background: #fff;
    border: 1px solid #cbd8e6;
    border-radius: 8px;
    height: 48px;
    object-fit: contain;
    padding: 4px;
    width: 82px;
}

.trwsoft-legal-kicker {
    color: #2563a8;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.trwsoft-legal-modal .modal-title {
    color: #0b1f4d;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.25;
    margin: 2px 0 0;
}

.trwsoft-legal-modal .btn-close { opacity: .78; }
.trwsoft-legal-modal .modal-body { background: #fff; padding: 20px; }

.trwsoft-legal-intro {
    background: #f8fbff;
    border: 1px solid #dbe8f4;
    border-left: 4px solid #2563a8;
    border-radius: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
    margin: 0 0 15px;
    padding: 13px 14px;
}

.trwsoft-legal-identity-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 15px;
}

.trwsoft-legal-identity-item {
    background: #f4f8fc;
    border: 1px solid #d8e3ee;
    border-radius: 8px;
    min-width: 0;
    padding: 11px 12px;
}

.trwsoft-legal-identity-item span {
    color: #64748b;
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.trwsoft-legal-identity-item span i { color: #2563a8; margin-right: 4px; }
.trwsoft-legal-identity-item strong,
.trwsoft-legal-identity-item a { color: #0b1f4d; font-size: 13px; font-weight: 900; overflow-wrap: anywhere; }
.trwsoft-legal-identity-item a:hover { color: #1d4ed8; text-decoration: underline; }

.trwsoft-legal-section-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.trwsoft-legal-section {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #d8e3ee;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    padding: 12px;
}

.trwsoft-legal-section-icon {
    align-items: center;
    background: #e9f3fd;
    border: 1px solid #c9def2;
    border-radius: 7px;
    color: #155e9b;
    display: inline-flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.trwsoft-legal-section h6 { color: #0b1f4d; font-size: 13px; font-weight: 950; margin: 0 0 4px; }
.trwsoft-legal-section p { color: #526174; font-size: 12px; font-weight: 650; line-height: 1.55; margin: 0; }

.trwsoft-legal-verification-note {
    align-items: flex-start;
    background: #fffbea;
    border: 1px solid #f2dea0;
    border-radius: 8px;
    color: #713f12;
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 13px;
}

.trwsoft-legal-verification-note > i { color: #b45309; margin-top: 2px; }
.trwsoft-legal-verification-note strong { display: block; font-size: 12px; font-weight: 950; margin-bottom: 2px; }
.trwsoft-legal-verification-note span { display: block; font-size: 11px; font-weight: 700; line-height: 1.55; }

.trwsoft-legal-modal .modal-footer {
    align-items: center;
    background: #f6f9fc;
    border-top: 1px solid #d8e3ee;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 13px 20px;
}

.trwsoft-legal-policy-links { display: flex; flex-wrap: wrap; gap: 7px; }
.trwsoft-legal-policy-links a { background: #fff; border: 1px solid #c9d7e6; border-radius: 6px; color: #0b1f4d; font-size: 11px; font-weight: 900; padding: 7px 9px; }
.trwsoft-legal-policy-links a:hover { background: #eaf3fc; border-color: #7fa9d4; color: #174ea6; }
.trwsoft-legal-close-btn { background: #0b1f4d; border-color: #0b1f4d; color: #fff; font-weight: 900; min-width: 82px; }
.trwsoft-legal-close-btn:hover { background: #174ea6; border-color: #174ea6; color: #fff; }
.trwsoft-legal-copyright { background: #eaf1f8; border-top: 1px solid #d5e0eb; color: #526174; font-size: 10px; font-weight: 800; padding: 7px 20px; text-align: center; }

@media (max-width: 700px) {
    .trwsoft-legal-identity-grid,
    .trwsoft-legal-section-grid { grid-template-columns: 1fr; }
    .trwsoft-legal-modal .modal-footer { align-items: stretch; flex-direction: column; }
    .trwsoft-legal-policy-links { display: grid; grid-template-columns: 1fr; width: 100%; }
    .trwsoft-legal-policy-links a { text-align: center; }
    .trwsoft-legal-close-btn { width: 100%; }
}

@media print {
    .trwsoft-legal-modal { display: none !important; }
    .footer-company-link { color: inherit !important; text-decoration: none !important; }
}

.family-portal-footer .footer-legal-links { gap: 4px 8px; margin-bottom: 8px; }
.family-portal-footer .footer-legal-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 2px; }
.family-portal-footer .footer-company-link { min-height: 44px; max-width: 100%; text-align: left; }
.family-footer-dialog { border: 0; padding: 0; width: min(800px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); border-radius: 12px; color: #1e293b; box-shadow: 0 26px 80px #0f172a55; }
.family-footer-dialog::backdrop { background: #071b2db3; }
.family-footer-dialog .modal-content { box-shadow: none; }
.family-footer-dialog .modal-header { display: flex; justify-content: space-between; gap: 16px; background: #063b2d; border-top: 5px solid #f2bd22; color: #fff; }
.family-footer-dialog .trwsoft-legal-kicker { color: #ffe28a; }
.family-footer-dialog .modal-title { color: #fff; font-size: clamp(18px, 2.2vw, 23px); }
.family-footer-dialog .trwsoft-legal-section-icon, .family-footer-dialog i { display: none; }
.family-footer-dialog .family-footer-close { flex: 0 0 44px; min-height: 44px; padding: 0; border: 1px solid #ffffff90; border-radius: 8px; background: #ffffff20; color: #fff; font: 28px/1 system-ui, sans-serif; cursor: pointer; }
.family-footer-dialog .trwsoft-legal-close-btn { font: inherit; cursor: pointer; min-height: 44px; padding: 8px 18px; border: 1px solid #0b1f4d; border-radius: 8px; }
.family-footer-dialog .trwsoft-legal-policy-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; }
.family-footer-dialog a:focus-visible, .family-footer-dialog button:focus-visible, .family-portal-footer a:focus-visible { outline: 3px solid #ac6c00; outline-offset: 3px; }
body.family-footer-dialog-open { overflow: hidden; }
@media (max-width: 480px) {
    .family-portal-footer .footer-legal-links { display: grid; grid-template-columns: 1fr 1fr; }
    .family-portal-footer .footer-legal-links a { justify-content: center; }
    .family-portal-footer .footer-legal-links > span { display: none; }
    .family-footer-dialog .modal-header, .family-footer-dialog .modal-body, .family-footer-dialog .modal-footer { padding: 16px; }
    .family-footer-dialog .trwsoft-legal-brand { gap: 10px; }
    .family-footer-dialog .trwsoft-legal-brand img { width: 48px; height: 36px; }
    .family-footer-dialog .modal-title { font-size: 18px; }
}
