.taxibt-legal-footer {
    --taxibt-legal-gold: #f5c400;
    --taxibt-legal-gold-2: #ffcc12;
    --taxibt-legal-text: #f7f7f7;
    --taxibt-legal-muted: #a9a9ad;
    width: min(100% - 32px, 1160px);
    margin: 16px auto 16px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    overflow-anchor: none;
}

.taxibt-legal-footer,
.taxibt-legal-footer * {
    box-sizing: border-box;
}

.taxibt-legal-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(245, 196, 0, 0.24);
    background:
        radial-gradient(circle at 0% 0%, rgba(245, 196, 0, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(17, 17, 18, 0.98), rgba(8, 8, 9, 0.99));
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.taxibt-legal-footer__sal,
.taxibt-legal-footer__caen {
    min-width: 0;
    padding: 19px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.taxibt-legal-footer__sal {
    border-right: 1px solid rgba(255, 255, 255, 0.075);
}

.taxibt-legal-footer__eyebrow {
    display: block;
    margin: 0 0 10px;
    color: var(--taxibt-legal-gold);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.taxibt-legal-footer__sal-link {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    border-radius: 12px;
    text-decoration: none !important;
    transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
    outline: none;
}

.taxibt-legal-footer__sal-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.035);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.taxibt-legal-footer__sal-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.34);
}

.taxibt-legal-footer__sal-link img {
    display: block;
    width: 201px;
    height: 50px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.taxibt-legal-footer__caen-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 7px;
}

.taxibt-legal-footer__caen-line strong {
    color: var(--taxibt-legal-text);
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.taxibt-legal-footer__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid rgba(245, 196, 0, 0.32);
    border-radius: 999px;
    background: rgba(245, 196, 0, 0.08);
    color: var(--taxibt-legal-gold-2);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.taxibt-legal-footer__caen p {
    margin: 0;
    color: var(--taxibt-legal-muted);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 620px) {
    .taxibt-legal-footer {
        width: min(100% - 24px, 1160px);
        margin-top: 14px;
        margin-bottom: 14px;
    }

    .taxibt-legal-footer__inner {
        grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
        border-radius: 22px;
    }

    .taxibt-legal-footer__sal,
    .taxibt-legal-footer__caen {
        padding: 15px 14px;
    }

    .taxibt-legal-footer__sal {
        padding-right: 11px;
    }

    .taxibt-legal-footer__caen {
        padding-left: 13px;
    }

    .taxibt-legal-footer__eyebrow {
        margin-bottom: 8px;
        font-size: 8.5px;
        letter-spacing: 0.08em;
    }

    .taxibt-legal-footer__sal-link img {
        width: 100%;
        height: auto;
        aspect-ratio: 201 / 50;
    }

    .taxibt-legal-footer__caen-line {
        gap: 5px;
        margin-bottom: 5px;
    }

    .taxibt-legal-footer__caen-line strong {
        font-size: 14px;
    }

    .taxibt-legal-footer__badge {
        min-height: 20px;
        padding: 3px 6px;
        font-size: 8px;
    }

    .taxibt-legal-footer__caen p {
        font-size: 10.5px;
        line-height: 1.42;
    }
}

@media (max-width: 360px) {
    .taxibt-legal-footer {
        width: calc(100% - 18px);
    }

    .taxibt-legal-footer__sal,
    .taxibt-legal-footer__caen {
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .taxibt-legal-footer__caen-line strong {
        font-size: 13px;
    }

    .taxibt-legal-footer__caen p {
        font-size: 9.8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .taxibt-legal-footer__sal-link {
        transition: none;
    }
}

/* v1.1.3: Keep this panel in normal document flow with positive margins.
   The former -88px / -92px offsets overlapped the existing copyright.
   Do not restore viewport-dependent offsets or resize/scroll recalculations. */

/* v1.1.0: linkuri ANPC + pagina de informatii legale. */
.taxibt-legal-footer__text-link,
.taxibt-legal-footer__details-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin-top: 10px;
    color: #d8d8da !important;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 160ms ease, transform 160ms ease;
}

.taxibt-legal-footer__details-link {
    color: var(--taxibt-legal-gold-2) !important;
}

.taxibt-legal-footer__text-link:hover,
.taxibt-legal-footer__details-link:hover {
    color: #ffffff !important;
    transform: translateX(2px);
}

.taxibt-legal-page {
    --tlp-gold: #f5c400;
    --tlp-gold-2: #ffd226;
    --tlp-bg: #09090a;
    --tlp-card: #121214;
    --tlp-line: rgba(255, 255, 255, 0.09);
    --tlp-text: #f7f7f8;
    --tlp-muted: #a9a9af;
    width: min(100% - 28px, 1080px);
    margin: 48px auto 56px;
    color: var(--tlp-text);
}

.taxibt-legal-page,
.taxibt-legal-page * {
    box-sizing: border-box;
}

.taxibt-legal-page__hero {
    padding: 34px 34px 30px;
    border: 1px solid rgba(245, 196, 0, 0.22);
    border-radius: 28px;
    background:
        radial-gradient(circle at 0 0, rgba(245, 196, 0, 0.13), transparent 35%),
        linear-gradient(180deg, #131315, #0a0a0b);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.25);
}

.taxibt-legal-page__kicker,
.taxibt-legal-page__card-head > span,
.taxibt-legal-page__section-head > span,
.taxibt-legal-page__consumer > div:first-child > span {
    display: block;
    margin-bottom: 9px;
    color: var(--tlp-gold);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.taxibt-legal-page__hero h1 {
    margin: 0 0 12px;
    color: var(--tlp-text);
    font-size: clamp(31px, 5vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.taxibt-legal-page__hero p {
    max-width: 760px;
    margin: 0;
    color: var(--tlp-muted);
    font-size: 15px;
    line-height: 1.65;
}

.taxibt-legal-page__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.taxibt-legal-page__card,
.taxibt-legal-page__section,
.taxibt-legal-page__consumer {
    border: 1px solid var(--tlp-line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(19, 19, 21, 0.98), rgba(10, 10, 11, 0.99));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.taxibt-legal-page__card {
    padding: 26px;
}

.taxibt-legal-page__card--wide {
    grid-column: 1 / -1;
}

.taxibt-legal-page__card-head h2,
.taxibt-legal-page__section-head h2 {
    margin: 0;
    color: var(--tlp-text);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.taxibt-legal-page__card-head h2 small {
    display: inline-flex;
    margin-left: 6px;
    padding: 4px 8px;
    border: 1px solid rgba(245, 196, 0, 0.3);
    border-radius: 999px;
    color: var(--tlp-gold-2);
    font-size: 10px;
    font-weight: 800;
    vertical-align: middle;
}

.taxibt-legal-page__rows {
    margin-top: 18px;
    border-top: 1px solid var(--tlp-line);
}

.taxibt-legal-page__row {
    display: grid;
    grid-template-columns: minmax(130px, 0.38fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 15px 0;
    border-bottom: 1px solid var(--tlp-line);
}

.taxibt-legal-page__row > span {
    color: #8f8f96;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.taxibt-legal-page__row strong,
.taxibt-legal-page__row a {
    color: var(--tlp-text) !important;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

.taxibt-legal-page__row a:hover {
    color: var(--tlp-gold-2) !important;
}

.taxibt-legal-page__description {
    margin: 18px 0 0;
    color: var(--tlp-muted);
    font-size: 15px;
    line-height: 1.65;
}

.taxibt-legal-page__section {
    margin-top: 18px;
    padding: 26px;
}

.taxibt-legal-page__auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.taxibt-legal-page__auth-card {
    padding: 20px;
    border: 1px solid var(--tlp-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.taxibt-legal-page__auth-card--notes {
    grid-column: 1 / -1;
}

.taxibt-legal-page__auth-card h3 {
    margin: 0 0 12px;
    color: var(--tlp-text);
    font-size: 17px;
    line-height: 1.3;
}

.taxibt-legal-page__auth-card .taxibt-legal-page__row {
    grid-template-columns: minmax(110px, 0.4fr) minmax(0, 1fr);
    padding: 11px 0;
}

.taxibt-legal-page__auth-card p {
    margin: 0;
    color: var(--tlp-muted);
    font-size: 14px;
    line-height: 1.6;
}

.taxibt-legal-page__consumer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 18px;
    padding: 22px 24px;
    border-color: rgba(245, 196, 0, 0.22);
}

.taxibt-legal-page__consumer strong {
    display: block;
    color: var(--tlp-text);
    font-size: 16px;
    line-height: 1.35;
}

.taxibt-legal-page__consumer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.taxibt-legal-page__consumer-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(245, 196, 0, 0.28);
    border-radius: 999px;
    background: rgba(245, 196, 0, 0.07);
    color: var(--tlp-gold-2) !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.taxibt-legal-page__consumer-actions a:hover {
    background: rgba(245, 196, 0, 0.13);
    color: #ffffff !important;
}

.taxibt-legal-page__note {
    margin: 14px 4px 0;
    color: #76767c;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 620px) {
    .taxibt-legal-footer__text-link,
    .taxibt-legal-footer__details-link {
        margin-top: 7px;
        font-size: 8.8px;
    }

    .taxibt-legal-page {
        width: calc(100% - 20px);
        margin-top: 28px;
        margin-bottom: 38px;
    }

    .taxibt-legal-page__hero {
        padding: 24px 20px 22px;
        border-radius: 22px;
    }

    .taxibt-legal-page__hero p {
        font-size: 13px;
    }

    .taxibt-legal-page__grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 12px;
    }

    .taxibt-legal-page__card--wide {
        grid-column: auto;
    }

    .taxibt-legal-page__card,
    .taxibt-legal-page__section {
        padding: 19px 17px;
        border-radius: 20px;
    }

    .taxibt-legal-page__card-head h2,
    .taxibt-legal-page__section-head h2 {
        font-size: 19px;
    }

    .taxibt-legal-page__row,
    .taxibt-legal-page__auth-card .taxibt-legal-page__row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 12px 0;
    }

    .taxibt-legal-page__auth-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .taxibt-legal-page__auth-card--notes {
        grid-column: auto;
    }

    .taxibt-legal-page__consumer {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
        border-radius: 20px;
    }

    .taxibt-legal-page__consumer-actions {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .taxibt-legal-footer__text-link,
    .taxibt-legal-footer__details-link {
        transition: none;
    }
}


/* v1.1.1: pe pagina legala ascundem numai blocurile vechi de footer detectate de JS. */
body.taxibt-legal-info-page [data-taxibt-legal-page-hidden="1"] {
    display: none !important;
}

body.taxibt-legal-info-page footer.taxibt-legal-page-footer,
body.taxibt-legal-info-page #colophon.taxibt-legal-page-footer,
body.taxibt-legal-info-page .site-footer.taxibt-legal-page-footer {
    overflow: visible;
}
