:root {
    --page-bg: #e9ece6;
    --header-bg: #26231f;
    --header-border: #38312a;
    --text-light: #ffffff;
    --muted-light: #ddd6ca;
    --accent: #e48a32;
    --accent-deep: #9f5616;
    --accent-soft: rgba(228, 138, 50, 0.14);
    --search-bg: #f8f5f0;
    --search-text: #928978;
    --surface: rgba(251, 249, 245, 0.94);
    --surface-strong: #fffdf9;
    --surface-border: rgba(67, 49, 28, 0.12);
    --text-main: #261710;
    --text-body: #5b4e44;
    --text-muted: #7d6d60;
    --shadow-soft: 0 18px 40px rgba(38, 28, 20, 0.08);
    --shadow-strong: 0 28px 70px rgba(31, 22, 16, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-y: auto;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100svh;
    padding: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 28%),
        radial-gradient(circle at right, rgba(228, 138, 50, 0.12), transparent 24%),
        linear-gradient(180deg, #f6f3ee 0%, #ece8e1 45%, #e5e7e1 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    overflow-wrap: anywhere;
}

.page-shell {
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    display: block;
    flex: 1;
}

.section-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 10px clamp(16px, 3vw, 22px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    color: var(--text-light);
}

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

.brand-copy {
    min-width: 0;
}

.brand-title,
.brand-tagline {
    margin: 0;
}

.brand-title {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
}

.brand-accent {
    color: var(--accent);
}

.brand-tagline {
    margin-top: 3px;
    max-width: 240px;
    color: var(--muted-light);
    font-size: 0.64rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(14px, 2vw, 22px);
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text-light);
    font-size: clamp(0.92rem, 1.3vw, 0.98rem);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.site-nav a:hover {
    color: var(--accent);
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    position: relative;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(240px, 100%);
    width: 100%;
    max-width: 280px;
    padding: 8px 14px;
    background: var(--search-bg);
    border-radius: 999px;
    flex: 1 1 220px;
}

.search-icon {
    width: 12px;
    height: 12px;
    border: 2px solid #b6ad9f;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    background: #b6ad9f;
    border-radius: 999px;
    transform: rotate(45deg);
    transform-origin: center;
}

.search-form input {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--search-text);
    font: inherit;
    outline: none;
}

.search-form input::placeholder {
    color: var(--search-text);
}

.menu-button {
    display: grid;
    align-content: space-between;
    width: 40px;
    height: 40px;
    padding: 10px 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex: 0 0 40px;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--text-light);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: min(220px, calc(100vw - 32px));
    background-color: #1a1a1a;
    border: 1px solid rgba(228, 138, 50, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 6000;
    backdrop-filter: blur(10px);
}

.dropdown-content.active {
    display: flex;
    flex-direction: column;
}

.dropdown-content a {
    color: var(--text-light);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid rgba(228, 138, 50, 0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(228, 138, 50, 0.2);
    color: var(--accent);
}

.developers-section {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: clamp(42px, 7vw, 88px) 0;
    border-bottom: 1px solid var(--surface-border);
}

.developers-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(250, 247, 241, 0.9), rgba(236, 232, 224, 0.92));
    z-index: 0;
}

.developers-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.48;
}

.developers-particles > canvas {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
}

#particles-js,
#particles-js * {
    pointer-events: none !important;
}

.developers-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(18px, 3vw, 28px);
}

.section-kicker {
    margin: 0;
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-panel,
.development-overview,
.developers-content-space {
    border: 1px solid var(--surface-border);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: clamp(24px, 4vw, 38px);
    padding: clamp(28px, 5vw, 52px);
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(228, 138, 50, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(255, 252, 248, 0.98), rgba(245, 237, 228, 0.96));
}

.hero-panel::before {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 138, 50, 0.12), transparent 68%);
    pointer-events: none;
}

.hero-copy,
.overview-copy,
.developers-heading {
    display: grid;
    gap: 14px;
}

.hero-copy h1,
.overview-copy h2,
.developers-heading h2,
.dev-name,
.focus-card h3 {
    font-family: Georgia, "Times New Roman", serif;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    max-width: 11ch;
}

.hero-lead,
.overview-copy p,
.developers-heading p,
.dev-summary,
.focus-card p {
    margin: 0;
    color: var(--text-body);
    font-size: clamp(0.98rem, 1.45vw, 1.04rem);
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    gap: 14px;
    align-content: end;
}

.hero-stat {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(228, 138, 50, 0.18);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
}

.hero-stat strong {
    display: block;
    font-size: clamp(1.18rem, 2vw, 1.5rem);
    line-height: 1.1;
    color: var(--text-main);
}

.hero-stat span {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.development-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    gap: clamp(20px, 3vw, 30px);
    padding: clamp(24px, 4vw, 38px);
    background:
        linear-gradient(140deg, rgba(255, 251, 246, 0.98), rgba(243, 236, 228, 0.95));
}

.overview-copy h2,
.developers-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.focus-grid {
    display: grid;
    gap: 14px;
}

.focus-card {
    padding: 18px 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(67, 49, 28, 0.1);
}

.focus-card h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
    color: var(--text-main);
}

.developers-content-space {
    display: grid;
    gap: clamp(20px, 3vw, 30px);
    padding: clamp(24px, 4vw, 38px);
    background:
        radial-gradient(circle at top left, rgba(228, 138, 50, 0.08), transparent 24%),
        linear-gradient(135deg, rgba(255, 252, 248, 0.98), rgba(247, 240, 232, 0.96));
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.dev-card {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 241, 234, 0.92));
    border: 1px solid rgba(67, 49, 28, 0.12);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.dev-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), rgba(228, 138, 50, 0.18));
}

.dev-card:hover {
    transform: translateY(-6px);
    border-color: rgba(228, 138, 50, 0.22);
    box-shadow: var(--shadow-strong);
}

.dev-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dev-avatar {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.3), transparent 42%),
        linear-gradient(135deg, #e48a32, #9f5616);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 16px 26px rgba(155, 79, 46, 0.18);
}

.dev-title-block {
    display: grid;
    gap: 4px;
}

.dev-role {
    margin: 0;
    color: var(--accent-deep);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dev-name {
    margin: 0;
    font-size: clamp(1.32rem, 2vw, 1.68rem);
    line-height: 1.08;
    color: var(--text-main);
}

.dev-summary {
    max-width: 54ch;
}

.dev-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dev-tags span {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(228, 138, 50, 0.08);
    border: 1px solid rgba(228, 138, 50, 0.18);
    color: var(--text-main);
    font-size: 0.84rem;
    font-weight: 700;
}

.dev-info {
    display: grid;
    gap: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid rgba(67, 49, 28, 0.09);
}

.info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.info-link,
.github-link {
    color: var(--accent-deep);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.info-link {
    font-size: 0.95rem;
    font-weight: 600;
}

.info-link:hover {
    color: var(--accent);
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(228, 138, 50, 0.08);
    border: 1px solid rgba(228, 138, 50, 0.2);
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
}

.github-link:hover {
    background: rgba(228, 138, 50, 0.14);
    border-color: rgba(228, 138, 50, 0.32);
    color: var(--accent);
}

.site-footer {
    background: #26211d;
    color: #f4ede4;
}

.footer-shell {
    padding: 34px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 32px;
    align-items: start;
}

.footer-brand-block {
    max-width: 430px;
}

.footer-brand,
.footer-intro,
.footer-description,
.footer-bottom p,
.footer-links,
.footer-contact-list {
    margin: 0;
}

.footer-brand {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
}

.footer-intro {
    margin-top: 8px;
    max-width: 300px;
    color: #d4c8bd;
    font-size: 0.98rem;
    line-height: 1.45;
}

.footer-description {
    margin-top: 14px;
    max-width: 360px;
    color: #bcae9f;
    font-size: 0.96rem;
    line-height: 1.6;
}

.footer-contact-list,
.footer-links {
    padding: 0;
    list-style: none;
}

.footer-contact-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e5dbd1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    color: #f0e7de;
    flex: 0 0 18px;
    margin-top: 2px;
}

.footer-contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-contact-list a,
.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-contact-list a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.footer-contact-list a:hover,
.footer-links a:hover {
    color: var(--accent);
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #d0c2b5;
    font-size: 0.95rem;
    line-height: 1.45;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
    color: #bcae9f;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    flex-wrap: wrap;
}

.footer-legal-item {
    position: relative;
}

.footer-legal-label {
    display: inline-flex;
    align-items: center;
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d4c8bd;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-legal-label:focus {
    outline: 2px solid rgba(228, 138, 50, 0.7);
    outline-offset: 4px;
    border-radius: 6px;
}

.footer-legal-item:hover .footer-legal-label,
.footer-legal-item:focus-within .footer-legal-label {
    color: var(--accent);
}

.footer-legal-card {
    position: absolute;
    left: 0;
    bottom: calc(100% + 14px);
    width: min(320px, calc(100vw - 40px));
    padding: 14px 16px;
    background: #fff9f2;
    border: 1px solid rgba(72, 53, 31, 0.16);
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(12, 8, 5, 0.26);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 30;
}

.footer-legal-card::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 100%;
    width: 12px;
    height: 12px;
    background: #fff9f2;
    border-right: 1px solid rgba(72, 53, 31, 0.16);
    border-bottom: 1px solid rgba(72, 53, 31, 0.16);
    transform: rotate(45deg) translateY(-6px);
}

.footer-legal-item:hover .footer-legal-card,
.footer-legal-item:focus-within .footer-legal-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-legal-card strong {
    display: block;
    margin-bottom: 6px;
    color: #2b2018;
    font-size: 0.95rem;
}

.footer-legal-card p {
    margin: 0;
    color: #4f4135;
    font-size: 0.88rem;
    line-height: 1.55;
}

@media (max-width: 1024px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        justify-content: center;
        gap: 14px 20px;
        padding-top: 2px;
    }

    .hero-panel,
    .development-overview {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-block {
        max-width: none;
        grid-column: 1 / -1;
    }

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

    .footer-legal {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px 16px;
    }

    .brand,
    .site-nav,
    .header-actions {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 12px 18px;
    }

    .header-actions {
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .search-form {
        flex: 1 1 240px;
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .section-shell {
        width: min(1180px, calc(100% - 24px));
    }

    .site-header {
        gap: 12px;
        padding: 14px 12px;
    }

    .brand {
        align-items: flex-start;
        gap: 10px;
    }

    .brand-title {
        font-size: 1.3rem;
    }

    .brand-tagline {
        max-width: 170px;
        font-size: 0.54rem;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 10px 14px;
    }

    .site-nav a {
        font-size: 0.92rem;
    }

    .header-actions {
        align-items: stretch;
    }

    .search-form {
        order: 1;
        width: 100%;
    }

    .menu-button {
        order: 2;
        align-self: center;
        margin-left: auto;
    }

    .dropdown-content {
        top: calc(100% + 6px);
        width: min(260px, calc(100vw - 24px));
    }

    .developers-section {
        padding: 26px 0 40px;
    }

    .hero-panel,
    .development-overview,
    .developers-content-space {
        padding: 20px 16px;
        border-radius: 22px;
    }

    .hero-copy h1 {
        font-size: clamp(2.1rem, 10vw, 3rem);
        max-width: none;
    }

    .overview-copy h2,
    .developers-heading h2 {
        font-size: clamp(1.56rem, 7vw, 2rem);
    }

    .dev-card {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .dev-card-top {
        align-items: flex-start;
    }

    .dev-avatar {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .info-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-shell {
        padding: 30px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand {
        font-size: 1.7rem;
    }

    .footer-legal {
        gap: 16px;
    }

    .footer-legal-card {
        left: 50%;
        bottom: calc(100% + 12px);
        width: min(320px, calc(100vw - 32px));
        transform: translateX(-50%) translateY(10px);
    }

    .footer-legal-card::after {
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
    }

    .footer-legal-item:hover .footer-legal-card,
    .footer-legal-item:focus-within .footer-legal-card {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 420px) {
    .dev-tags {
        gap: 8px;
    }

    .dev-tags span {
        font-size: 0.78rem;
        padding: 8px 10px;
    }

    .github-link,
    .info-link {
        font-size: 0.88rem;
    }
}

/* Footer legal popovers must stay inside the viewport. */
.footer-legal,
.footer-legal-item {
    max-width: 100%;
    overflow: visible;
}

.footer-legal-card {
    box-sizing: border-box;
    max-width: calc(100vw - 32px);
    overflow-wrap: anywhere;
}

.footer-legal-item:last-child .footer-legal-card {
    left: auto;
    right: 0;
    transform: translateY(10px);
}

.footer-legal-item:last-child .footer-legal-card::after {
    left: auto;
    right: 28px;
}

.footer-legal-item:last-child:hover .footer-legal-card,
.footer-legal-item:last-child:focus-within .footer-legal-card {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .footer-bottom {
        align-items: stretch;
    }

    .footer-legal {
        position: relative;
        width: 100%;
        justify-content: flex-start;
        gap: 12px 16px;
    }

    .footer-legal-item {
        position: static;
    }

    .footer-legal-label {
        white-space: normal;
    }

    .footer-legal-card {
        left: 0;
        right: auto;
        width: min(320px, calc(100vw - 32px));
        transform: translateY(10px);
    }

    .footer-legal-card::after {
        left: 24px;
        right: auto;
        transform: rotate(45deg) translateY(-6px);
    }

    .footer-legal-item:hover .footer-legal-card,
    .footer-legal-item:focus-within .footer-legal-card {
        transform: translateY(0);
    }

    .footer-legal-item:last-child .footer-legal-card {
        left: auto;
        right: 0;
        transform: translateY(10px);
    }

    .footer-legal-item:last-child .footer-legal-card::after {
        left: auto;
        right: 28px;
        transform: rotate(45deg) translateY(-6px);
    }

    .footer-legal-item:last-child:hover .footer-legal-card,
    .footer-legal-item:last-child:focus-within .footer-legal-card {
        transform: translateY(0);
    }
}
