.locale-switcher {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(123, 44, 191, 0.12);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(25, 25, 25, 0.08);
    backdrop-filter: blur(8px);
}

.locale-switcher__link {
    min-width: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #6c21b3;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.locale-switcher__link.is-active,
.locale-switcher__link:hover {
    background: #6c21b3;
    color: #fff;
}

.frontend-alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 16px;
    background: rgba(220, 53, 69, 0.08);
    color: #b42318;
    font-size: 0.95rem;
}

.frontend-success {
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid rgb(127 50 218);
    border-radius: 16px;
    background: rgb(127 50 218 / 13%);
    color: #7f32da;
    font-size: 0.95rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user__name {
    color: var(--clr-dark);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-user__logout {
    line-height: 1;
}

.signup-choice-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #f6f6f6;
}

.signup-choice-page .section-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.signup-choice-page .logo {
    position: absolute;
    top: 42px;
    left: 42px;
    z-index: 2;
}

.signup-choice-content {
    width: min(100%, 560px);
}

.signup-choice-title {
    margin-bottom: 40px;
    color: #111;
    font-size: clamp(2rem, 2.8vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.signup-selector-card {
    flex: 1;
    min-width: 240px;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-selector-card:hover {
    transform: translateY(-4px);
    border-color: var(--clr-primary);
    box-shadow: 0 18px 35px rgba(108, 33, 179, 0.12);
}

.signup-selector-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.signup-selector-card__icon {
    color: var(--clr-primary);
    font-size: 1.5rem;
}

.signup-selector-card__label {
    color: var(--clr-text);
    font-size: 1.2rem;
    font-weight: 500;
}

.signup-choice-stroke {
    position: absolute;
    left: -20px;
    bottom: -20px;
    width: min(320px, 35vw);
    opacity: 0.35;
    pointer-events: none;
}

.legal-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(138, 43, 226, 0.1), transparent 30%),
        linear-gradient(180deg, #f8f5ff 0%, #f8fafc 38%, #ffffff 100%);
}

.legal-page__hero {
    padding: 72px 24px 32px;
}

.legal-page__hero-inner {
    width: min(100%, 920px);
    margin: 0 auto;
}

.legal-page__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(127, 50, 218, 0.1);
    color: #7f32da;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legal-page__title {
    margin: 18px 0 12px;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
}

.legal-page__subtitle {
    max-width: 720px;
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
}

.legal-page__content {
    padding: 0 24px 72px;
}

.legal-page__card {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 32px;
    border: 1px solid rgba(127, 50, 218, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.legal-page__card h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
}

.legal-page__card h2:not(:first-child) {
    margin-top: 28px;
}

.legal-page__card p {
    margin: 0;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.85;
}

html[dir='rtl'] .locale-switcher {
    /* right: auto;
    left: 24px; */
}

html[dir='rtl'] .signup-choice-page .logo {
    right: 42px;
    left: auto;
}

html[dir='rtl'] .input-icon {
    right: 14px;
    left: auto;
}

html[dir='rtl'] .input-wrapper input {
    padding: 14px 44px 14px 14px;
    text-align: right;
}

html[dir='rtl'] .required {
    margin-right: 2px;
    margin-left: 0;
}

html[dir='rtl'] .btn-login {
    margin-right: 0;
    margin-left: auto;
}

html[dir='rtl'] .forgot-center .login-form,
html[dir='rtl'] .form-group label,
html[dir='rtl'] .form-header,
html[dir='rtl'] .login-footer,
html[dir='rtl'] .signin-company,
html[dir='rtl'] .services-figma-card__body,
html[dir='rtl'] .why-figma__content,
html[dir='rtl'] .alcamp-orbit__content,
html[dir='rtl'] .footer-figma__col,
html[dir='rtl'] .jobs-figma,
html[dir='rtl'] .cta-card__inner {
    text-align: right;
}

html[dir='rtl'] .hero__row--2 {
    transform: translateX(-120px);
}

html[dir='rtl'] .hero__row--3 {
    transform: translateX(-40px);
}

html[dir='rtl'] .footer-figma__item,
html[dir='rtl'] .social-login__buttons,
html[dir='rtl'] .signup-selector-card__head {
    flex-direction: row-reverse;
}

html[dir='rtl'] .nav-user {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .locale-switcher {
        /* top: 16px;
        right: 16px; */
    }

    html[dir='rtl'] .locale-switcher {
        left: 16px;
    }

    .signup-choice-page .logo {
        top: 24px;
        left: 24px;
    }

    html[dir='rtl'] .signup-choice-page .logo {
        right: 24px;
    }

    .signup-choice-content {
        width: min(100%, 420px);
    }

    .legal-page__hero {
        padding-top: 52px;
    }

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

    .signup-choice-title {
        margin-bottom: 28px;
        font-size: 1.9rem;
    }

    .signup-choice-page .cards {
        gap: 18px;
    }

    .signup-selector-card {
        min-width: 100%;
    }

    .nav-user {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-user__name {
        text-align: center;
    }

    html[dir='rtl'] .hero__row--2 {
        transform: none;
    }

    html[dir='rtl'] .hero__row--3 {
        transform: none;
    }
}
