/* Footer legal strip - owner-approved option A (2026-11-04).
   Desktop/tablet: three columns (who we are | registration | legal links) over a darker copyright bar.
   Phone: links first as a 2x2 tap grid, then company, then registration; copyright bar centred.
   Right padding keeps the links clear of the floating WhatsApp / chat buttons. */
.ft-legal {
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
}
.ft-legal p { margin: 0; color: inherit; }
.ft-legal ul { list-style: none; margin: 0; padding: 0; }
.ft-legal a { color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .2s; }
.ft-legal a:hover, .ft-legal a:focus-visible { color: #fff; text-decoration: underline; }
.ft-legal a:focus-visible { outline: 2px solid #bfdbfe; outline-offset: 2px; border-radius: 3px; }

.ft-top {
    display: grid;
    grid-template-columns: 1.3fr 1.4fr 1fr;
    gap: 28px 40px;
    padding: 28px 110px 24px 28px;
    max-width: 1440px;
    margin: 0 auto;
}
.ft-col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.ft-legal .ft-name { color: #fff; font-weight: 600; font-size: 15px !important; line-height: 1.4; }
/* responsive.css forces every <p> to 16px !important on phones */
.ft-legal .ft-since { font-size: 13px !important; line-height: 1.5; }
.ft-lbl {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
.ft-ids {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 4px 14px;
    margin: 0;
    padding: 0 !important;
}
.ft-ids dt, .ft-ids dd { padding: 0 !important; margin: 0 !important; }
.ft-ids dt { margin: 0; }
.ft-ids dd {
    margin: 0;
    color: #fff;
    font-size: 13px;
    letter-spacing: .03em;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}
.ft-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px !important; }
.ft-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .09);
    border-radius: 50px;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
}
.ft-chips i { font-size: 10px; color: #bfdbfe; }
.ft-links { display: grid; gap: 6px; }
.ft-links a { font-size: 13px; }

.ft-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 20px;
    padding: 14px 110px 14px 28px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    background: rgba(0, 0, 0, .12);
    font-size: 12.5px;
    color: rgba(255, 255, 255, .72);
}
.ft-bottom a { color: #fff; }
.ft-bottom-in { display: contents; }   /* phones: no box of its own, layout identical to before */
.ft-place i { font-size: 11px; color: #bfdbfe; margin-right: 4px; }

/* Phone */
@media (max-width: 767px) {
    .ft-top { grid-template-columns: 1fr; gap: 18px; padding: 20px 15px 18px; text-align: left; }
    .ft-reg, .ft-legal-col { grid-column: auto; grid-row: auto; }
    .ft-legal-col { order: -1; }
    .ft-legal-lbl { display: none; }
    .ft-links { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ft-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 8px 6px;
        border: 1px solid rgba(255, 255, 255, .16);
        background: rgba(255, 255, 255, .09);
        border-radius: 10px;
        font-size: 12.5px;
        line-height: 1.3;
        text-align: center;
    }
    .ft-links a:hover, .ft-links a:focus-visible { text-decoration: none; background: rgba(255, 255, 255, .15); }
    .ft-bottom { flex-direction: column; align-items: center; text-align: center; padding: 14px 15px; gap: 4px; }
}
@media (max-width: 359px) {
    .ft-chips li { white-space: normal; }
    .ft-links a { font-size: 12px; }
}

/* =====================================================================
   Tablet + desktop (owner-approved 2026-11-04): two lines aligned to the
   footer column edges above (theme container 720/960/1140/1320/1560 px,
   menu text starts 39 px inside it), full-width darker copyright bar.
   Phone rules above are untouched.
   ===================================================================== */
@media (min-width: 768px) {
    .ft-top, .ft-bottom-in {
        max-width: 720px;
        margin: 0 auto;
        padding-left: 39px;
        padding-right: 39px;
    }
    .ft-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "about" "links" "reg";
        align-items: center;
        gap: 12px 32px;
        padding-top: 20px;
        padding-bottom: 18px;
    }
    .ft-about { grid-area: about; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
    .ft-legal-col { grid-area: links; }
    .ft-reg { grid-area: reg; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
    .ft-reg > .ft-lbl, .ft-legal-lbl { display: none; }
    .ft-ids { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0; }
    .ft-ids dt { margin-right: 8px !important; }
    .ft-ids dd { margin-right: 22px !important; font-size: 12.5px; }
    .ft-ids dd:last-child { margin-right: 0 !important; }
    .ft-chips { margin-top: 0 !important; }
    .ft-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
    .ft-links a + a::before {
        content: "\00B7";
        display: inline-block;            /* keeps the dot out of the hover underline */
        margin: 0 12px;
        color: rgba(255, 255, 255, .45);
    }
    .ft-bottom { display: block; padding: 0; }
    .ft-bottom-in {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 6px 20px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}
@media (min-width: 992px) {
    .ft-top, .ft-bottom-in { max-width: 960px; }
    /* company left, links right on one line; registration on the second */
    .ft-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "about links" "reg reg"; }
}
@media (min-width: 1200px) { .ft-top, .ft-bottom-in { max-width: 1140px; } }
@media (min-width: 1400px) { .ft-top, .ft-bottom-in { max-width: 1320px; } }
@media (min-width: 1600px) { .ft-top, .ft-bottom-in { max-width: 1560px; } }
/* Where the column edge runs under the floating WhatsApp / chat buttons, keep the right side clear */
@media (min-width: 768px) and (max-width: 1254px) {
    .ft-top, .ft-bottom-in { padding-right: 96px; }
}
