/* ===== Tokens / base (stage 5 — Lex) ===== */
:root {
    /* Lex locals — black canvas + gold accent + green CTAs */
    --gold-brand: #121215;
    --gold-accent: #f4d483;
    --cream: #ffffff;
    --offer-cream: #ffffff;
    --parchment-ink: #ffffff;
    --jewel: var(--cta-accent);
    --jewel-dark: var(--cta-accent-hover);
    --header-brick-mid: #000000;

    /* Core palette — page vs chrome split */
    --x1-primary: #000000;
    --x1-secondary: #ffffff;
    --x1-tertiary: #ffffff;
    --x1-bg-deep: #121215;
    --x1-login-blue: transparent;

    /* Surfaces */
    --bg-secondary: #121215;
    --bg-tertiary: #252528;
    --bg-elevated: #1d1d20;
    --surface-a: #000000;
    --surface-b: #121215;
    --surface-c: #1d1d20;
    --surface-d: #252528;

    /* Content colors */
    --content-primary: #ffffff;
    --content-secondary: hsla(0, 0%, 100%, 0.6);
    --content-tertiary: hsla(0, 0%, 100%, 0.6);
    --content-on-accent: #ffffff;

    /* Controls & borders */
    --control-neutral: #1d1d20;
    --control-neutral-hover: #252528;
    --border-divider: rgba(255, 255, 255, 0.08);
    --border-focus: #f4d483;

    /* Legacy aliases — retarget so leftover selectors cannot flash Martin indigo/nebula */
    --iris-bg: var(--x1-bg-deep);
    --iris-purple-a: #f4d483;
    --iris-purple-b: #ffffff;
    --iris-cta-a: var(--cta-accent);
    --iris-cta-b: var(--cta-accent-hover);

    --hero-sand: var(--content-secondary);
    --hero-deep: #121215;
    --hero-gold: var(--gold-accent);
    --hero-gold-bright: #f4d483;
    --hero-cream: var(--offer-cream);
    --hero-stage: #121215;
    --accent-pink-rgb: 255, 36, 72;
    --accent-gold-rgb: 244, 212, 131;
    --accent-green-rgb: 31, 167, 69;
    --accent-blue-rgb: 244, 212, 131;
    --ui-panel: 18, 18, 21;
    --ui-panel-2: 29, 29, 32;
    --link-accent: #f4d483;
    --brand-purple: #f4d483;
    --brand-magenta: #f4d483;
    --accent-orange: #1fa745;
    --accent-orange-hover: #20ca4f;
    --btn-promo: #1fa745;
    --btn-promo-hover: #20ca4f;
    --gradient-brand: #121215;
    --gradient-night: linear-gradient(0deg, #000000 30%, #121215 60%, #1d1d20);
    --shadow-m: 0 4px 15px rgba(0, 0, 0, 0.1);
    --radius-pill: 12px;
    --radius-btn: 100px;
    --radius-tab: 8px;
    --radius-card: 12px;
    --radius-hero: 20px;

    --header-fade-gradient: linear-gradient(rgb(9, 10, 13), rgb(22, 24, 29));

    --primary-color: #000000;
    --primary-color-light: #121215;
    --btn-dark-color: transparent;

    --secondary-color: #ffffff;
    --btn-secondary-color: #1fa745;
    --btn-primary-hover: var(--cta-accent-hover);
    --tertiary-color: #ffffff;
    --red-color: #ff2448;
    --blue-color: #f4d483;
    --dark-btn-text: #000000;

    /* Typography families (loaded via Google Fonts in templates) */
    --font-sans: "Open Sans", "Helvetica Neue", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Open Sans", "Helvetica Neue", system-ui, sans-serif;
    --font-offer: var(--font-display);

    /* Layout & spacing */
    --space-page-x-mobile: 16px;
    --space-page-x-desktop: 16px;
    --btn-height: 44px;
    --btn-padding-x: 24px;
    --section-gap: 24px;
    --card-padding: 16px;
    --header-height: 72px;

    /* Structural aliases for later stages (consume existing palette) */
    --interactive-primary-bg: var(--cta-accent);
    --interactive-secondary-bg: transparent;
    --text-accent: var(--link-accent);
    --logo-cyan: #7c879d;
    --hero-ocean: #121215;
    --footer-gradient: none;
    --prize-gold: #f4d483;
    --cta-glow: var(--cta-accent-glow);

    /* Lex CTA / prize / plate tokens (stages 6–10 consume these) */
    --cta-main: #1fa745;
    --cta-main-hover: #20ca4f;
    --cta-accent: #1fa745;
    --cta-accent-hover: #20ca4f;
    --cta-accent-glow: 0 4px 32px hsla(0, 0%, 100%, 0.2);
    --cta-inset: none;
    --cta-outline: 1px solid rgba(255, 255, 255, 0.6);
    --prize-glow: 0 3px 9px rgba(244, 212, 131, 0.35);
    --offer-metal: linear-gradient(180deg, #f4d483 0%, #d4b46a 100%);
    --hero-nebula: #121215;
    --success: #1fa745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    color-scheme: dark;
    overflow-x: clip;
    background: var(--x1-primary);
    color: var(--content-primary);
    font-family: var(--font-sans);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.anchor-heading {
    scroll-margin-top: var(--header-height);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--content-primary);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--content-primary);
    min-height: 100%;
    min-height: 100dvh;
    position: relative;
    background: var(--x1-primary);
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--content-primary);
    text-decoration: none;
}

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

a:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.page-fill {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.page-fill > .content-section {
    flex: 1 1 auto;
}

.page-fill > .legal-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.page-fill .legal-main .content-section {
    flex: 1 1 auto;
}

@media (max-width: 1024px) {
    :root {
        --radius-hero: 12px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
}

/* ===== Header & navigation (stage 6 — Lex) ===== */

/* Lex header heights — override stage-5 tokens for scroll-padding contract */
:root {
    --header-height: 52px;
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background-color: rgb(9, 10, 13);
    background-image: var(--header-fade-gradient);
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 16px;
}

.header-top-bar {
    display: none;
}

.page-legal .header {
    background-color: rgb(9, 10, 13);
    background-image: var(--header-fade-gradient);
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-content {
    margin: 0 auto;
    max-width: 1100px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 100%;
    min-height: 0;
}

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

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}

.header-logo:hover {
    color: inherit;
    opacity: 0.92;
}

.header-logo-img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Lex wordmark 68×30 at all breakpoints */
.header-logo-img--desktop {
    display: block;
    width: 68px;
    height: 30px;
    max-width: 68px;
}

.header-logo-img--mobile {
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Language dropdown — chrome/colors only; CSS Anchor + Popover positioning unchanged */
.lang-dropdown {
    position: relative;
    flex-shrink: 0;
    z-index: 1100;
}

.lang-dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
    padding: 0 12px;
    height: 36px;
    min-height: 36px;
    min-width: 48px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--border-divider);
    background: var(--control-neutral);
    color: var(--content-primary);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    text-shadow: none;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.lang-dropdown--mobile .lang-dropdown-btn {
    anchor-name: --lang-dropdown-mobile;
}

.lang-dropdown--desktop .lang-dropdown-btn {
    anchor-name: --lang-dropdown-desktop;
}

.lang-dropdown-btn:hover {
    background: var(--control-neutral-hover);
    border-color: var(--gold-accent);
    color: var(--content-primary);
}

.lang-dropdown-btn:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.lang-dropdown-btn-label {
    white-space: nowrap;
}

.lang-dropdown-chevron {
    flex-shrink: 0;
    opacity: 0.85;
    color: var(--content-secondary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.lang-dropdown:has(.lang-dropdown-panel:popover-open) .lang-dropdown-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-btn:hover .lang-dropdown-chevron {
    color: var(--gold-accent);
}

.lang-dropdown-panel {
    min-width: 10rem;
    max-height: min(70vh, 22rem);
    overflow-y: auto;
    padding: 6px 0;
    margin: 0;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-divider);
    background: var(--surface-b);
    box-shadow: var(--shadow-m);
}

.lang-dropdown-panel[popover] {
    display: none;
    position: fixed;
    inset: auto;
}

.lang-dropdown-panel[popover]:popover-open {
    display: flex;
    flex-direction: column;
}

.lang-dropdown--mobile .lang-dropdown-panel[popover] {
    position-anchor: --lang-dropdown-mobile;
    top: calc(anchor(bottom) + 6px);
    /* Left-align to trigger: right-anchor overflows viewport on ≤360px */
    left: anchor(left);
    right: auto;
    bottom: auto;
}

.lang-dropdown--desktop .lang-dropdown-panel[popover] {
    position-anchor: --lang-dropdown-desktop;
    top: calc(anchor(bottom) + 6px);
    right: anchor(right);
    left: auto;
    bottom: auto;
}

.lang-dropdown-item-form {
    display: contents;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    border: none;
    text-align: left;
    box-sizing: border-box;
}

.lang-dropdown-item:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: -2px;
}

button.lang-dropdown-item {
    width: 100%;
    background: none;
    font: inherit;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
}

.lang-dropdown-item.lang-dropdown-link {
    color: var(--content-secondary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.lang-dropdown-item.lang-dropdown-link:hover {
    background: var(--control-neutral-hover);
    color: var(--gold-accent);
}

.lang-dropdown-current {
    color: var(--link-accent);
    cursor: pointer;
    box-shadow: inset 3px 0 0 var(--link-accent);
}

/* Download links — Lex muted icon pills */
.download-links {
    display: none;
    align-items: center;
    gap: 2px;
}

.download-label {
    display: none;
}

.download-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    background: var(--control-neutral);
    text-decoration: none;
    text-align: center;
    color: var(--content-primary);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.download-link:hover {
    background: var(--control-neutral-hover);
    border-color: var(--gold-accent);
    color: var(--content-primary);
}

.download-link:hover .download-icon {
    fill: var(--content-primary);
}

.download-link:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.download-icon {
    width: 18px;
    height: 18px;
    fill: var(--logo-cyan);
    transition: fill 0.2s ease;
}

/* Header CTAs — Lex ghost Login + green Sign Up, 36px pill */
.header-login,
.header-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 36px;
    min-height: 36px;
    padding: 0 16px;
    border-radius: var(--radius-btn);
    border: var(--cta-outline);
    background: transparent;
    color: var(--content-primary);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-login {
    border: var(--cta-outline);
    background: transparent;
    color: #ffffff;
}

.header-register {
    border: 1px solid transparent;
    background: var(--cta-accent);
    color: #ffffff;
    box-shadow: none;
}

.header-login:hover,
.header-login:active {
    background: transparent;
    border-color: var(--gold-accent);
    color: #ffffff;
}

.header-register:hover,
.header-register:active {
    background: var(--cta-accent-hover);
    border-color: transparent;
    color: #ffffff;
    box-shadow: none;
}

.header-login:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.header-register:focus-visible {
    outline: 2px solid var(--cta-accent);
    outline-offset: 2px;
}

.header-help {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--btn-height);
    min-height: var(--btn-height);
    padding: 0 8px;
    color: var(--content-secondary);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    transition: color 0.2s ease;
}

.header-help:hover {
    color: var(--gold-accent);
}

.header-help:hover .help-icon {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    background: var(--control-neutral-hover);
}

.header-help:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.help-icon {
    width: 22px;
    height: 22px;
    border: 1px solid var(--border-divider);
    border-radius: 50%;
    background: var(--control-neutral);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    color: var(--content-secondary);
    text-align: center;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.help-text {
    color: inherit;
    text-align: center;
}

@media (min-width: 769px) {
    .header {
        padding: 0 32px;
    }

    .header-content {
        height: 100%;
        min-height: 0;
        padding: 0;
    }

    .lang-dropdown--mobile {
        display: none;
    }

    .download-links {
        display: flex;
    }

    .header-right {
        gap: 8px;
    }

    .header-help {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 36px;
        min-height: 36px;
    }

    .header-login,
    .header-register {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 36px;
        min-height: 36px;
        padding: 0 16px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
    }

    .lang-dropdown-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 36px;
        min-height: 36px;
        min-width: 48px;
        padding: 0 12px;
        font-size: 12px;
        font-weight: 600;
        text-transform: none;
        text-align: center;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: var(--header-height);
    }

    .header {
        height: var(--header-height);
        padding: 0 16px;
    }

    .lang-dropdown--desktop {
        display: none;
    }

    .header-content {
        padding: 0;
        height: 100%;
        min-height: 0;
    }

    .header-brand {
        flex: 0 0 auto;
        min-width: 0;
        gap: 6px;
    }

    .header-logo-img--desktop {
        display: block;
        width: 68px;
        height: 30px;
        max-width: 68px;
    }

    .header-logo-img--mobile {
        display: none;
    }

    .header-right {
        gap: 4px;
        min-width: 0;
        flex-shrink: 1;
        flex-wrap: nowrap;
    }

    /* Both CTAs stay in header (no bottom bar). DOM order: Login then Register. */
    .header-login,
    .header-register {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        height: 36px;
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
    }

    .header-register {
        box-shadow: none;
    }

    .lang-dropdown-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 36px;
        min-height: 36px;
        min-width: 48px;
        padding: 0 10px;
        border-radius: var(--radius-btn);
        font-size: 12px;
        font-weight: 600;
        text-transform: none;
        text-align: center;
    }
}

/* ===== Hero + mobile promo (stage 7) ===== */
.container {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: var(--header-height) var(--space-page-x-desktop) var(--section-gap);
    overflow-x: clip;
    overflow-y: visible;
    background: var(--x1-primary);
    box-shadow: none;
}

.container::after {
    display: none;
}

/* Lex hero plate: dark card #121215 + subtle gold tint, promo art on the right */
.content-wrapper {
    display: flex;
    align-items: stretch;
    gap: 16px 24px;
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    height: auto;
    min-height: 312px;
    padding: 28px 32px;
    overflow: hidden;
    border-radius: var(--radius-hero);
    border: 1px solid var(--border-divider);
    box-shadow: var(--shadow-m);
    background-color: #121215;
    background-image: radial-gradient(ellipse 70% 100% at 88% 50%, rgba(244, 212, 131, 0.07) 0%, transparent 58%);
}

.content-wrapper::before {
    content: none;
    display: none;
}

.form-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px 0 12px;
    max-width: 440px;
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    z-index: 2;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* Speech-bubble pointer — keep hidden */
.form-container::after {
    content: none;
    display: none;
}

.banner-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    min-width: 0;
    align-self: stretch;
    position: relative;
    z-index: 1;
    background: transparent;
}

.banner-img {
    width: auto;
    max-width: min(100%, 340px);
    height: auto;
    max-height: 312px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center right;
    border-radius: var(--radius-card);
    border: none;
    filter: none;
}

.page-bonuses .banner-container {
    align-items: flex-end;
    justify-content: flex-end;
}

.page-bonuses .banner-img {
    object-position: right bottom;
    transform: none;
    transform-origin: center bottom;
}

@media (min-width: 1025px) {
    .content-wrapper {
        justify-content: flex-start;
        padding: 28px 32px;
    }

    .form-container {
        align-items: flex-start;
        max-width: 420px;
        width: auto;
        text-align: left;
        flex: 0 1 420px;
    }

    .headline-1,
    .headline-2,
    .headline-offer {
        text-align: left;
    }

    .headline-2 {
        display: none;
    }

    .headline-offer {
        display: flex;
        margin-top: 0;
    }

    .form-container .logo {
        justify-content: flex-start;
    }

    .form-container .hero-buttons {
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
    }

    .banner-container {
        position: absolute;
        inset: 0 0 0 38%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        pointer-events: none;
    }

    .banner-img {
        max-width: min(100%, 360px);
        max-height: 100%;
        height: auto;
        object-fit: contain;
        object-position: center right;
        transform: none;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        display: none;
        flex-direction: column;
        align-items: center;
        height: auto;
        min-height: 0;
        padding: 18px 0;
        background: transparent;
        background-image: none;
        border: none;
        border-radius: 0;
        overflow: visible;
    }

    .content-wrapper::before {
        content: none;
        display: none;
    }

    .form-container {
        margin: 0 auto;
        max-width: 460px;
        align-items: flex-start;
        padding: 8px 0;
    }

    .form-container::after {
        display: none;
        content: none;
    }

    .banner-container,
    .page-bonuses .banner-container {
        display: none;
    }

    .form-container .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .form-container .hero-buttons > a[href] {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        min-width: 0;
    }

    .form-container .hero-buttons button.btn-register,
    .form-container .hero-buttons .btn-register,
    .form-container .hero-buttons a.btn-register {
        width: 100%;
        min-width: 0;
    }
}

.headline-1 {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    text-align: left;
    color: var(--content-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0;
    line-height: 1.2;
    padding: 0;
    background: none;
    border-radius: 0;
    clip-path: none;
}

.headline-2 {
    text-align: left;
    color: var(--content-primary);
    font-family: var(--font-sans);
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0;
    order: 0;
}

.headline-offer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    text-align: left;
    margin: 8px 0 4px;
    font-family: var(--font-sans);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--content-primary);
}

@media (max-width: 1024px) {
    .headline-1 {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
    }

    .headline-2 {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.15;
    }

    .headline-offer {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
    }
}

.offer-accent-money {
    display: inline;
    align-items: baseline;
    justify-content: flex-start;
    background: none;
    color: #f4d483;
    -webkit-text-fill-color: #f4d483;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    filter: none;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    letter-spacing: inherit;
    vertical-align: baseline;
}

.offer-accent-fs {
    display: inline;
    align-items: baseline;
    justify-content: flex-start;
    background: none;
    color: var(--content-primary);
    -webkit-text-fill-color: var(--content-primary);
    -webkit-background-clip: border-box;
    background-clip: border-box;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    font-weight: 700;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;
    vertical-align: baseline;
}

@media (max-width: 1024px) {
    .offer-accent-money {
        font-size: inherit;
    }
}

.btn-register {
    width: 100%;
    height: 36px;
    min-height: 36px;
    padding: 0 20px;
    background: var(--cta-accent);
    color: var(--content-on-accent);
    border: none;
    border-radius: var(--radius-btn);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    box-shadow: none;
}

.btn-register.btn-login {
    background: transparent;
    margin-bottom: 0;
    height: 36px;
    min-height: 36px;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    color: var(--content-primary);
    border: var(--cta-outline);
    box-shadow: none;
}

.btn-register.btn-login:hover {
    background: transparent;
    color: var(--content-primary);
    border-color: var(--gold-accent);
    box-shadow: none;
}

a.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

a.btn-register:hover {
    color: var(--content-on-accent);
}

a.btn-register.btn-login:hover {
    color: var(--content-primary);
}

.btn-register:hover {
    background: var(--cta-accent-hover);
    color: var(--content-on-accent);
    box-shadow: none;
}

.btn-register.btn-login:hover {
    background: transparent;
    color: var(--content-primary);
    border-color: var(--gold-accent);
}

.btn-register:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.btn-register:active {
    background: var(--cta-accent-hover);
}

.btn-register.btn-login:active {
    background: transparent;
    color: var(--content-primary);
    border-color: var(--gold-accent);
}

.form-banner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-login-banner {
    width: 100%;
    height: 36px;
    min-height: 36px;
    padding: 0 20px;
    background: transparent;
    color: var(--content-primary);
    border: var(--cta-outline);
    border-radius: var(--radius-btn);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-login-banner:hover {
    background: transparent;
    color: var(--content-primary);
    border-color: var(--gold-accent);
}

.btn-login-banner:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* ===== Main content / article (stage 8 — Lex) ===== */
.content-section {
    position: relative;
    background: #000000;
    padding: 28px var(--space-page-x-mobile) 32px;
}

@media (min-width: 769px) {
    .content-section {
        padding-left: var(--space-page-x-desktop);
        padding-right: var(--space-page-x-desktop);
    }
}

.content-section > * {
    position: relative;
    z-index: 1;
}

.content-max-width {
    max-width: 1100px;
    margin: 0 auto;
}

.content-title {
    color: hsla(0, 0%, 100%, 0.8);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: left;
    line-height: 1.4;
    letter-spacing: 0;
}

/* ===== Social proof + conversion (stage 9) ===== */
.content-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: var(--section-gap) 0 calc(var(--section-gap) + 12px);
}

.content-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    min-height: var(--btn-height);
    min-width: 200px;
    padding: 0 var(--btn-padding-x);
    background: #1fa745;
    color: var(--content-on-accent);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    text-shadow: none;
    border: none;
    border-radius: var(--radius-btn);
    box-shadow: var(--cta-inset);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.content-btn:hover {
    background: #20ca4f;
    color: var(--content-on-accent);
    border: none;
    transform: none;
    box-shadow: var(--cta-inset);
}

.content-btn:active {
    background: #20ca4f;
    color: var(--content-on-accent);
}

.content-btn:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.content-max-width > .content-button-wrapper:last-child {
    margin-top: 32px;
    margin-bottom: 8px;
}

.content-max-width > .content-button-wrapper:last-child .content-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: var(--btn-height);
    min-width: min(326px, 100%);
    padding: 0 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    background: #1fa745;
    box-shadow: var(--cta-accent-glow);
}

.content-max-width > .content-button-wrapper:last-child .content-btn:hover,
.content-max-width > .content-button-wrapper:last-child .content-btn:active {
    background: #20ca4f;
    box-shadow: var(--cta-accent-glow);
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--section-gap);
    margin: var(--section-gap) 0;
}

.pros-block,
.cons-block {
    border-radius: var(--radius-card);
    padding: var(--card-padding);
    background: #121215;
    border: 1px solid var(--border-divider);
    box-shadow: var(--shadow-m);
}

.cons-block {
    background: #121215;
}

.pros-cons-title {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--content-primary);
}

.pros-block .pros-cons-title,
.cons-block .pros-cons-title {
    color: var(--content-primary);
}

.pros-cons-head-icon {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
}

.pros-cons-head-icon svg {
    display: block;
}

.pros-cons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pros-cons-list li {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--content-secondary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pros-block .pros-cons-list li::before {
    content: "✓";
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
    margin-top: 2px;
}

.cons-block .pros-cons-list li::before {
    content: "✗";
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--red-color);
    margin-top: 2px;
}

@media (max-width: 700px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }

    .pros-block,
    .cons-block {
        min-width: 0;
    }
}

/* Intro band: author meta */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: var(--section-gap);
    padding: var(--card-padding);
    background: #121215;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-divider);
    box-shadow: var(--shadow-m);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--content-secondary);
    line-height: 20px;
}

.article-meta-icon {
    width: 16px;
    height: 16px;
    fill: var(--link-accent);
    flex-shrink: 0;
}

.article-meta-label {
    color: var(--content-primary);
    font-weight: 500;
}

.rating-card {
    background: #121215;
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-card);
    padding: var(--card-padding);
    margin-bottom: var(--section-gap);
    max-width: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px 24px;
    box-shadow: var(--shadow-m);
}

.rating-card-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 110px;
    text-align: center;
    border-right: 1px solid var(--border-divider);
    padding-right: 24px;
}

.rating-number {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #f4d483;
}

.rating-max {
    font-size: 16px;
    color: var(--content-tertiary);
    font-weight: 400;
}

.rating-stars {
    display: flex;
    gap: 3px;
    margin: 8px 0 6px;
}

.rating-stars .star {
    color: #f4d483;
    font-size: 16px;
}

.rating-stars .star-half {
    color: #f4d483;
    font-size: 16px;
    opacity: 0.65;
}

.rating-count {
    font-size: 12px;
    color: var(--content-tertiary);
}

.rating-card-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    align-content: center;
}

.fact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: #1d1d20;
    border-radius: 8px;
    border: 1px solid var(--border-divider);
}

.fact-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--content-tertiary);
}

.fact-value {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--content-primary);
}

.fact-value.good {
    color: var(--content-primary);
}

.fact-value.warn {
    color: var(--content-primary);
}

@media (max-width: 600px) {
    .rating-card {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .rating-card-score {
        border-right: none;
        border-bottom: 1px solid var(--border-divider);
        padding-right: 0;
        padding-bottom: 16px;
    }

    .rating-card-facts {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .fact-item {
        padding: 8px 10px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        box-shadow: none;
    }
}

/* Casino facts table — Lex dark card */
.stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--section-gap) 0 calc(var(--section-gap) + 8px);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #121215;
    box-shadow: var(--shadow-m);
}

.stats-table tr {
    background: #121215;
}

.stats-table tr:nth-child(even) {
    background: #1d1d20;
}

.stats-table td {
    padding: 12px var(--card-padding);
    vertical-align: middle;
    border-bottom: 1px solid var(--border-divider);
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.stats-table td:first-child {
    color: var(--content-secondary);
    width: 42%;
    font-size: 14px;
    font-weight: 400;
    border-radius: 0;
}

.stats-table td:last-child {
    color: var(--content-primary);
    font-weight: 500;
    border-radius: 0;
}

.stats-table tr:first-child td:first-child {
    border-radius: var(--radius-card) 0 0 0;
}

.stats-table tr:first-child td:last-child {
    border-radius: 0 var(--radius-card) 0 0;
}

.stats-table tr:last-child td:first-child {
    border-radius: 0 0 0 var(--radius-card);
}

.stats-table tr:last-child td:last-child {
    border-radius: 0 0 var(--radius-card) 0;
}

.text-content {
    color: var(--content-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-content p {
    margin-bottom: 12px;
    color: var(--content-secondary);
    font-size: 14px;
    line-height: 20px;
}

.text-content a {
    color: #f4d483;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.text-content a:hover {
    color: #ffffff;
    text-decoration-thickness: 2px;
}

.text-content a:focus-visible {
    color: #ffffff;
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.text-content strong,
.text-content b {
    color: var(--content-primary);
    font-weight: 600;
}

.text-content em {
    color: var(--content-secondary);
    font-style: italic;
}

/* Table of contents — numbered card */
.article-toc {
    width: 100%;
    margin: var(--section-gap) 0;
    padding: 16px 20px 20px;
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-card);
    background: #121215;
    box-sizing: border-box;
    box-shadow: var(--shadow-m);
    position: static;
}

.text-content .article-toc-heading,
.article-toc-heading {
    margin: 0 0 14px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: hsla(0, 0%, 100%, 0.8);
    letter-spacing: 0;
    line-height: 20px;
    text-transform: none;
}

.text-content .article-toc-list {
    margin: 0;
    padding: 0 0 0 1.6em;
    list-style: decimal;
    display: block;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

.article-toc-list .level-1 {
    margin: 0 0 8px;
    padding: 0;
    color: var(--content-secondary);
    list-style: decimal;
}

.article-toc-list .level-1:last-child {
    margin-bottom: 0;
}

.article-toc-list .level-1::marker {
    color: #f4d483;
    font-family: var(--font-sans);
    font-weight: 600;
}

.article-toc-list a {
    display: inline;
    padding: 0;
    min-height: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: var(--content-secondary);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    transition: color 0.2s ease;
}

.article-toc-list a:hover {
    background: transparent;
    border: none;
    color: #f4d483;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-toc-list a:focus-visible {
    background: transparent;
    border: none;
    color: #f4d483;
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.article-toc-list a:active {
    background: transparent;
    border: none;
    color: #f4d483;
}

@media (max-width: 768px) {
    .article-toc {
        max-width: 100%;
        padding: 14px 16px 16px;
        background: #121215;
        border-radius: var(--radius-card);
    }

    .text-content .article-toc-list {
        padding-left: 1.4em;
        font-size: 14px;
        line-height: 1.7;
    }

    .article-toc-list a {
        font-size: 14px;
    }
}

.content-screen-figure {
    margin: var(--section-gap) 0;
    padding: 12px;
    text-align: center;
    overflow: hidden;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-divider);
    background: #121215;
    box-shadow: var(--shadow-m);
}

.content-screen-img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    border: none;
    box-shadow: none;
    background: #000000;
}

.text-content h2,
.text-content h3 {
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: hsla(0, 0%, 100%, 0.8);
    text-align: left;
    line-height: 20px;
    letter-spacing: 0;
}

.text-content h2,
.text-content h2.anchor-heading {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 20px;
    color: hsla(0, 0%, 100%, 0.8);
    scroll-margin-top: var(--header-height);
}

.text-content h3 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
}

.text-content ul,
.text-content ol:not(.article-toc-list) {
    margin: 0 0 var(--section-gap) 1.25em;
    padding: 0;
    color: var(--content-secondary);
}

.text-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.text-content li::marker {
    color: #f4d483;
}

/* FAQ accordion — Lex dark cards, gold open accent */
.faq-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: #121215;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-divider);
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
    background: #121215;
    border-color: var(--gold-accent);
    box-shadow: inset 3px 0 0 0 var(--gold-accent);
}

.faq-item[open] .faq-summary {
    color: var(--gold-accent);
}

.faq-summary {
    list-style: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    min-height: 44px;
    padding: 14px 44px 14px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--content-primary);
    position: relative;
    line-height: 1.4;
}

.faq-summary .faq-question {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary:hover {
    background: var(--control-neutral-hover);
    color: var(--content-primary);
}

.faq-summary:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: -2px;
}

.faq-item[open] .faq-summary:hover {
    background: var(--control-neutral-hover);
    color: var(--gold-accent);
}

.faq-summary::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid var(--gold-accent);
    border-bottom: 2px solid var(--gold-accent);
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] .faq-summary::after {
    transform: rotate(-135deg);
    margin-top: -2px;
    border-right-color: var(--gold-accent);
    border-bottom-color: var(--gold-accent);
}

.faq-body {
    padding: 0 16px 16px 19px;
}

.faq-body p {
    margin: 0;
    color: var(--content-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.faq-body .faq-answer-plain {
    margin: 0 0 10px 0;
    font-weight: 400;
    color: var(--content-secondary);
}


@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: stretch;
        padding: var(--header-height) var(--space-page-x-mobile) 12px;
        margin-top: 0;
        justify-content: flex-start;
    }

    .content-section {
        padding: 32px var(--space-page-x-mobile);
    }

    .content-max-width {
        padding-top: 0;
    }

    .content-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .anchor-heading {
        scroll-margin-top: var(--header-height);
    }

    .content-button-wrapper {
        width: 100%;
    }

    .content-button-wrapper .content-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        min-width: 0;
        min-height: var(--btn-height);
        font-size: 16px;
        font-weight: 700;
    }

    .form-container .hero-buttons > a[href] {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .article-meta {
        padding: 12px;
    }

    .text-content {
        font-size: 14px;
        line-height: 20px;
    }

    .text-content p {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 12px;
    }

    .text-content h2,
    .text-content h3 {
        font-size: 14px;
        font-weight: 600;
        margin-top: 28px;
        margin-bottom: 12px;
    }

    .text-content h2.anchor-heading {
        font-size: 14px;
        font-weight: 600;
        scroll-margin-top: var(--header-height);
    }

    .stats-table td {
        padding: 10px 12px;
        word-break: break-word;
    }

    .stats-table td:first-child {
        font-size: 14px;
        width: 45%;
    }

    .pros-block,
    .cons-block {
        box-shadow: none;
    }

    .content-screen-figure {
        border-radius: var(--radius-card);
        padding: 6px;
    }

    .content-screen-img {
        max-width: 100%;
        border-radius: var(--radius-card);
    }

    .faq-list {
        gap: 8px;
    }

    .faq-summary {
        font-size: 14px;
        font-weight: 600;
        min-height: 44px;
        padding: 12px 38px 12px 14px;
    }

    .faq-summary::after {
        right: 14px;
    }

    .faq-body {
        padding: 0 14px 14px 17px;
    }

    .faq-item[open] {
        box-shadow: inset 3px 0 0 0 var(--gold-accent);
        border-color: var(--gold-accent);
    }

    .headline-2 {
        font-family: var(--font-sans);
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: -0.64px;
        text-transform: uppercase;
        color: var(--content-primary);
    }

    .headline-offer {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
    }

    .offer-accent-money {
        font-size: inherit;
    }
}

@media (max-width: 600px) {
    .form-container {
        padding: 8px 0;
        border-radius: 0;
    }

    .headline-1 {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        padding: 0;
        background: none;
        clip-path: none;
        border-radius: 0;
    }

    .headline-2 {
        font-family: var(--font-sans);
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: -0.64px;
        text-transform: uppercase;
        color: var(--content-primary);
    }
}

/* ===== Footer + legal (stage 10 — Lex) ===== */
.footer {
    flex-shrink: 0;
    position: relative;
    background-color: transparent;
    background-image: none;
    padding: 32px var(--space-page-x-desktop) 48px;
    border-top: 1px solid var(--border-divider);
    box-shadow: none;
}

.footer::before,
.footer::after {
    content: none;
    display: none;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px 48px;
    flex-wrap: wrap;
    border-radius: 0;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    align-items: start;
    justify-content: end;
    justify-items: start;
    flex: 1 1 280px;
    max-width: none;
    min-width: 0;
    gap: 8px 40px;
}

.footer-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    min-height: 36px;
    padding: 4px 0;
    background: transparent;
    color: var(--gold-accent);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0;
    transition: color 0.2s ease;
}

.footer-nav a:first-child,
.footer-nav a:last-child,
.footer-nav a:only-child {
    border-radius: 0;
}

.footer-nav a::after {
    display: none;
}

.footer-nav a:last-child::after {
    display: none;
}

.footer-nav a:hover {
    color: var(--content-primary);
    text-decoration: none;
}

.footer-nav a:focus-visible {
    color: var(--content-primary);
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
    z-index: 1;
}

.legal-main {
    min-height: 50vh;
    padding: 24px 0 8px;
}

.page-legal .content-section {
    background: transparent;
}

.legal-document {
    background: var(--surface-b);
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-card);
    padding: calc(var(--card-padding) * 2) calc(var(--card-padding) * 1.5);
    box-shadow: none;
}

.page-legal .content-title {
    color: var(--content-primary);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
}

.legal-document .text-content {
    color: var(--content-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.legal-document .text-content h2,
.legal-document .text-content h3 {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0;
    margin-top: 28px;
    margin-bottom: 14px;
    color: var(--content-primary);
    font-weight: 700;
}

.legal-link {
    color: var(--gold-accent);
    font-family: var(--font-sans);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: var(--content-primary);
}

.legal-link:focus-visible {
    color: var(--content-primary);
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.legal-meta {
    margin-top: var(--section-gap);
    font-size: 14px;
    color: var(--content-tertiary) !important;
}

.legal-visual-block,
.page-apk .legal-visual-block,
.page-bonuses .legal-visual-block {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-card);
    background: var(--surface-b);
    box-shadow: none;
}

.legal-visual-eyebrow {
    margin: 0 0 10px 0 !important;
    font-family: var(--font-display);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--content-tertiary) !important;
}

.legal-visual-title {
    margin: 0 0 10px 0 !important;
    font-family: var(--font-display);
    font-size: clamp(18px, 2.4vw, 22px);
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 700;
    color: var(--content-primary);
}

.legal-visual-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 280px);
    justify-self: end;
}

.legal-visual-media img {
    display: block;
    width: 100%;
    max-width: 280px;
    max-height: 220px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-divider);
    box-shadow: none;
    background: var(--surface-c);
}

.legal-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
    margin-bottom: 8px;
}

.legal-mini-card {
    padding: 14px;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-divider);
    background: var(--surface-c);
}

.legal-mini-card h3 {
    margin: 0 0 8px 0 !important;
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0;
    font-weight: 700;
    color: var(--content-primary);
}

.legal-mini-card p {
    margin: 0 !important;
    color: var(--content-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
}

.footer-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1 1 320px;
    min-width: 0;
}

.age-restriction-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--gold-accent);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: var(--content-primary);
    box-shadow: none;
}

.age-number {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    position: static;
}

.age-plus {
    font-size: 0.7em;
    font-weight: inherit;
    color: inherit;
    position: static;
    margin-left: 1px;
}

.footer-disclaimer p.footer-copyright,
.footer-copyright {
    color: var(--content-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: normal;
    margin: 0 0 10px 0 !important;
}

.footer-disclaimer p {
    color: var(--content-tertiary);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: normal;
    margin: 0;
    max-width: 52ch;
}

.footer-disclaimer p + p {
    margin-top: 8px;
}


@media (max-width: 768px) {
    .footer {
        padding: 32px var(--space-page-x-mobile) 40px;
    }

    .footer-content {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding-top: 0;
    }

    .footer-left {
        width: 100%;
        flex: none;
    }

    .footer-nav {
        width: 100%;
        max-width: none;
        flex: none;
        padding-top: 16px;
        border-top: 1px solid var(--border-divider);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        justify-items: start;
        gap: 4px 24px;
    }

    .footer-nav a {
        min-height: 44px;
        width: 100%;
    }

    .footer-disclaimer p {
        max-width: none;
    }

    body.page-legal {
        padding-top: var(--header-height);
    }

    .legal-visual-block,
    .page-apk .legal-visual-block,
    .page-bonuses .legal-visual-block {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }

    .legal-visual-media {
        width: 100%;
        justify-self: center;
    }

    .legal-visual-media img {
        max-width: 240px;
        max-height: 180px;
    }

    .legal-mini-grid {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }
}

/* Hero logo hidden — header already shows LEX wordmark */
.form-container .logo {
    display: none;
}

/* Hero CTA — Lex: green Sign Up + ghost Login pills */
.form-container .hero-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    text-align: center;
}

.form-container .hero-buttons > a[href] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: auto;
    min-width: 120px;
    min-height: 36px;
    height: 36px;
    text-decoration: none;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.form-container .hero-buttons button.btn-register {
    -webkit-appearance: none;
    appearance: none;
    font-family: var(--font-sans);
    width: auto;
    min-width: 120px;
    height: 36px;
    min-height: 36px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form-container .hero-buttons .btn-register,
.form-container .hero-buttons a.btn-register {
    background: #ffffff;
    color: #000000;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: none;
    border: none;
    border-radius: var(--radius-btn);
    box-shadow: none;
    height: 36px;
    min-height: 36px;
    min-width: 120px;
    width: auto;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form-container .hero-buttons .btn-register.btn-login,
.form-container .hero-buttons a.btn-register.btn-login {
    background: transparent;
    margin-bottom: 0;
    height: 36px;
    min-height: 36px;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    color: var(--content-primary);
    border: var(--cta-outline);
    box-shadow: none;
}

.form-container .hero-buttons .btn-register:hover,
.form-container .hero-buttons a.btn-register:hover,
.form-container .hero-buttons button.btn-register:hover {
    background: #e8e8e8;
    color: #000000;
    transform: none;
    box-shadow: none;
}

.form-container .hero-buttons .btn-register.btn-login:hover,
.form-container .hero-buttons a.btn-register.btn-login:hover {
    background: transparent;
    color: var(--content-primary);
    border-color: var(--gold-accent);
    box-shadow: none;
}

@media (max-width: 1024px) {
    .form-container .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }

    .form-container .hero-buttons > a[href] {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        min-width: 0;
    }

    .form-container .hero-buttons button.btn-register,
    .form-container .hero-buttons .btn-register,
    .form-container .hero-buttons a.btn-register {
        width: 100%;
        min-width: 0;
    }
}

/* ===== Footer + legal (stage 10) — page-legal shell ===== */
body.page-legal {
    padding-top: var(--header-height);
    background: var(--surface-a);
}

body.page-legal .footer {
    margin-top: auto;
}

body.page-legal .legal-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    color: var(--content-secondary);
    font-family: var(--font-sans);
    line-height: 1.7;
}

body.page-legal .legal-wrap h1 {
    color: var(--content-primary);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.25px;
    margin-bottom: 20px;
}

body.page-legal .legal-wrap p {
    margin-bottom: 16px;
}

body.page-legal .legal-wrap a {
    color: var(--gold-accent);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.page-legal .legal-back {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--gold-accent);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.page-legal .legal-back:hover {
    color: var(--content-primary);
}

@media (max-width: 768px) {
    body.page-legal {
        padding-top: var(--header-height);
    }
}

/* Mobile-only promo strip (≤1024 — keep template breakpoint) */
.banerBody.mobile-promo-banner,
.mobile-promo-banner {
    display: none;
}

.noCopy {
    -webkit-user-select: none;
    user-select: none;
}

/* Show compact promo whenever desktop hero mascot is hidden (≤1024) */
@media (max-width: 1024px) {
    .banerBody.mobile-promo-banner,
    .mobile-promo-banner {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 0 12px;
        margin-top: 0;
        position: relative;
        z-index: 50;
        overflow-x: clip;
    }

    .mobile-promo-banner__link {
        display: flex;
        align-items: stretch;
        justify-content: center;
        text-align: center;
        text-decoration: none;
        color: inherit;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        border-radius: var(--radius-hero);
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-promo-banner__link:focus-visible {
        outline: 2px solid var(--border-focus);
        outline-offset: 2px;
        border-radius: var(--radius-hero);
    }

    .mobile-promo-banner__banner.bonusBanner {
        position: relative;
        overflow: hidden;
        width: 100%;
        min-height: 200px;
        aspect-ratio: 390 / 260;
        max-height: none;
        border-radius: var(--radius-hero);
        background-color: #121215;
        background-image: none;
        border: 1px solid var(--border-divider);
        box-shadow: var(--shadow-m);
        isolation: isolate;
    }

    .mobile-promo-banner__banner.bonusBanner::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(
            90deg,
            rgba(18, 18, 21, 0.94) 0%,
            rgba(18, 18, 21, 0.62) 38%,
            rgba(18, 18, 21, 0.18) 68%,
            rgba(18, 18, 21, 0.04) 100%
        );
        pointer-events: none;
    }

    .mobile-promo-banner__back {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .mobile-promo-banner__backImg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .mobile-promo-banner__mainImg.bonusBannerMain {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: center right;
        z-index: 0;
        pointer-events: none;
        filter: none;
    }

    .mobile-promo-banner__inside {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 2;
        padding: 20px 16px;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 12px;
        justify-content: center;
        min-height: 0;
        box-sizing: border-box;
    }

    .mobile-promo-banner__text {
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 62%;
        text-align: left;
    }

    .mobile-promo-banner__eyebrow {
        margin: 0;
        font-family: var(--font-sans);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.02em;
        line-height: 1.2;
        text-transform: uppercase;
        color: var(--content-secondary);
    }

    .mobile-promo-banner__lead {
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 6px;
        font-family: var(--font-sans);
        font-size: 18px;
        font-weight: 700;
        line-height: 1.15;
        color: var(--content-primary);
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .mobile-promo-banner__lead .offer-accent-money {
        display: inline;
        align-items: baseline;
        justify-content: flex-start;
        background: none;
        color: #f4d483;
        -webkit-text-fill-color: #f4d483;
        -webkit-background-clip: border-box;
        background-clip: border-box;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        filter: none;
        font-size: inherit;
        font-weight: 700;
        line-height: inherit;
    }

    .mobile-promo-banner__lead .offer-accent-fs {
        display: inline;
        align-items: baseline;
        justify-content: flex-start;
        background: none;
        color: var(--content-primary);
        -webkit-text-fill-color: var(--content-primary);
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        font-weight: 700;
        font-size: inherit;
        letter-spacing: inherit;
        text-transform: uppercase;
    }

    .mobile-promo-banner__cta {
        align-self: flex-start;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 36px;
        min-height: 36px;
        width: auto;
        min-width: 120px;
        max-width: 100%;
        padding: 0 20px;
        font-family: var(--font-sans);
        font-size: 12px;
        font-weight: 700;
        line-height: 20px;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: #000000;
        text-shadow: none;
        background: #ffffff;
        border: none;
        border-radius: var(--radius-btn);
        box-shadow: none;
        box-sizing: border-box;
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-promo-banner__link:hover .mobile-promo-banner__cta,
    .mobile-promo-banner__link:focus-visible .mobile-promo-banner__cta {
        background: #e8e8e8;
        color: #000000;
        border-color: transparent;
        box-shadow: none;
    }
}

@media (max-width: 430px) {
    .headline-offer {
        font-size: 16px;
    }

    .mobile-promo-banner__eyebrow {
        font-size: 11px;
    }

    .mobile-promo-banner__lead {
        font-size: 16px;
    }

    .mobile-promo-banner__cta {
        min-width: 110px;
        padding: 0 16px;
        align-self: flex-start;
    }

    .mobile-promo-banner__text {
        max-width: 68%;
    }

    .stats-table td:first-child {
        width: auto;
        font-size: 13px;
    }

    .stats-table td:last-child {
        font-size: 13px;
    }

    .legal-wrap,
    body.page-legal .legal-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 360px) {
    .headline-offer {
        font-size: 15px;
    }

    .mobile-promo-banner__lead {
        font-size: 15px;
    }

    .mobile-promo-banner__text {
        max-width: 72%;
    }
}


