/* Footer and privacy-policy modal, shared by index, inquiry and the
   recruiting page. Reconciled from the copies index.css and inquiry.css
   used to carry. */

.policy-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.55);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2200;
}

.policy-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.policy-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    padding: 32px 32px 40px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.policy-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.policy-modal__title {
    font-size: 22px;
    font-weight: 800;
}

.policy-modal__date {
    font-size: 14px;
    color: #555;
}

.policy-modal__date--footer {
    margin-top: 24px;
    display: block;
    font-weight: 600;
}

.policy-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

.policy-modal__body {
    margin-top: 12px;
    padding-right: 8px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    line-height: 1.7;
    color: #111;
}

.policy-modal__body h3 {
    font-size: 18px;
    margin: 18px 0 8px;
}

.policy-modal__body p, .policy-modal__body li {
    font-size: 15px;
}

.policy-modal__body ul {
    padding-left: 18px;
    margin: 8px 0 12px;
}

footer {
    background: #f6f6f6;
    padding: 60px 0 40px;
    /* Pinned so the footer renders the same whatever typography the
       host page sets on <body>; the recruiting page sets both. */
    line-height: normal;
    letter-spacing: normal;
}

footer p {
    margin: 0;
}

footer .footer-inner {
    max-width: var(--page-max, 1200px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 0 var(--page-gutter, 24px);
}

footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

footer .footer-brand {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

footer .footer-logo {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    width: fit-content;
    text-decoration: none;
}

footer .footer-logo img {
    height: 50px;
    width: auto;
    display: block;
}

footer .footer-links-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}

footer .footer-links-row a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.link-button:hover {
    border-color: #000;
}

footer .footer-links-row a:hover {
    border-color: #000;
}

footer .footer-address {
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

footer .footer-contact {
    color: #777;
    font-size: 13px;
}

footer .footer-actions {
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

footer .family {
    position: relative;
}

footer .family-btn {
    /* .link-button already does this; without it the button falls back to the
       browser default button font unless the host page resets it. */
    font-family: inherit;
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

footer .family-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

footer .family-btn span {
    font-size: 18px;
}

footer .family-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.15);
    padding: 6px;
    display: none;
    z-index: 20;
}

footer .family.open .family-menu {
    display: block;
}

footer .family-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

footer .family-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
}

footer .footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

footer .footer-social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

footer .footer-social a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

footer .footer-social svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 20px;
    font-size: 13px;
    color: #777;
}

@media (max-width: 768px) {
    footer {
        padding: 48px 18px 32px
    }

    footer .footer-top {
        flex-direction: column;
        gap: 24px
    }

    footer .footer-actions {
        min-width: auto;
        width: 100%
    }

    footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px
    }

    .policy-modal {
        padding: 16px
    }

    .policy-modal__dialog {
        padding: 24px 20px 32px
    }

}

@media (max-width: 480px) {
    footer .footer-brand {
        flex: 1 1 0px
    }

    footer {
        padding: 40px 14px 26px
    }

    footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px
    }

}
