/* Shared site footer — the same copyright bar as /create's footer. Used by
   the legacy home page and the portal pages (/my-cards, /friend-cards via
   components/SiteFooter.tsx). Sizes are in px because the legacy pages use a
   10px rem base (milligram) while the portal pages use Tailwind's 16px —
   rem/em values would render different heights per page. /create computes to
   5px padding + 14px text (line_name_card.css .footer) at 1.6 line-height;
   mirror that exactly. */

/* Single white row: the X Lead Funnel logo sits next to the copyright
   statement (no separate green bottom bar). */
.footer {
    margin-top: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 16px;
}

.footer-brand {
    line-height: 0;
}

.footer-brand img {
    height: 30px;
    width: auto;
    vertical-align: middle;
}

.footer-copy {
    color: #105e31;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.footer-copy a {
    color: inherit;
    text-decoration: underline;
}

/* The two copyright halves are inline by default → one line on wide screens,
   matching the /create footer. */
.footer-copy .cr-line1,
.footer-copy .cr-line2 {
    display: inline;
}

/* Under 900px: match /create — logo + copyright stay a single centred pair
   (no wrapping the logo onto its own line), and the copyright breaks into
   exactly 2 lines: "Copyright © … 領捷" / "© All rights reserved". */
@media (max-width: 899.98px) {
    .footer {
        flex-wrap: nowrap;
        gap: 14px;
    }

    .footer-copy {
        text-align: left;
    }

    .footer-copy .cr-line1,
    .footer-copy .cr-line2 {
        display: block;
    }
}
