/* 12-legacy: neutralise old template classes that still ride on some pages.
   Scope: body.lic-v2 only. Nothing here touches markup. */

/* a. Games pages: the old module adds body.games-dark-template (dark page, pink accents).
   All games pages get the navy bar; the games CATEGORY gets the normal new-style page (paper background, white cards).
   The games landing (CMS page) and the game product pages keep their own dark look. */
body.lic-v2.games-dark-template .page-header{background-color:var(--lc-navy)!important}
body.lic-v2.games-dark-template .nav-sections{background:var(--lc-navy)!important}
body.lic-v2.games-dark-template .nav-sections .navigation a.level-top{color:#A7B8C9}
body.lic-v2.games-dark-template .page-header .header.content .block-search .action.search,
body.lic-v2.games-dark-template .minicart-wrapper .action.showcart{background:var(--lc-accent)}
body.lic-v2.games-dark-template.catalog-category-view main,
body.lic-v2.games-dark-template.catalog-category-view .page-wrapper{background:var(--lc-bg)!important;color:var(--lc-ink)}
body.lic-v2.games-dark-template.catalog-category-view main.page-main{background:transparent!important}
body.lic-v2.games-dark-template.catalog-category-view .breadcrumbs{background:#FAFAFA!important;border-color:var(--lc-line)}
body.lic-v2.games-dark-template.catalog-category-view .breadcrumbs *{color:var(--lc-ink-2)}
body.lic-v2.games-dark-template.catalog-category-view .main .lc-btn-n{color:var(--lc-ink)}
body.lic-v2.games-dark-template.catalog-category-view .toolbar-products .toolbar-sorter .sorter-options{color:var(--lc-ink)}
body.lic-v2.games-dark-template.catalog-category-view .toolbar .modes .modes-mode.active::before{color:var(--lc-ink)}
body.lic-v2.games-dark-template.catalog-category-view .filter-options-content a:hover{background-color:var(--lc-tile)}
body.lic-v2.games-dark-template.catalog-category-view div.block .block-title strong{color:var(--lc-ink)}
body.lic-v2.games-dark-template.catalog-category-view .page-products .filter-options-item .filter-options-title,
body.lic-v2.games-dark-template.catalog-category-view .toolbar,
body.lic-v2.games-dark-template.catalog-category-view .sidebar .block-title:not(.filter-title),
body.lic-v2.games-dark-template.catalog-category-view .page-products .sidebar,
body.lic-v2.games-dark-template.catalog-category-view .page-before-footer,
body.lic-v2.games-dark-template.catalog-category-view.page-products .sidebar,
body.lic-v2.games-dark-template.catalog-category-view.page-products .filter-options-item .filter-options-title{border-color:var(--lc-line)!important}
body.lic-v2.games-dark-template.catalog-category-view .action.primary,
body.lic-v2.games-dark-template.catalog-category-view button.askit-show-form,
body.lic-v2.games-dark-template.catalog-category-view .product.data.items .review-add .review-form .action.submit.primary{background:var(--lc-accent);border-color:var(--lc-accent)}
body.lic-v2.games-dark-template.catalog-category-view .action.primary:hover,
body.lic-v2.games-dark-template.catalog-category-view .action.primary:focus,
body.lic-v2.games-dark-template.catalog-category-view .action.primary:active{background-color:var(--lc-navy);border-color:var(--lc-navy)}
/* product cards: the old rules paint the list item and a dark fade over it */
body.lic-v2.games-dark-template.catalog-category-view .page-products .products-grid:not(.swiper-container) .product-items .product-item,
body.lic-v2.games-dark-template.catalog-category-view.page-products .products-grid:not(.swiper-container) .product-items .product-item{background-color:transparent!important;border:0}
body.lic-v2.games-dark-template.catalog-category-view .page-products .products-grid:not(.swiper-container) .product-items .product-item:before,
body.lic-v2.games-dark-template.catalog-category-view.page-products .products-grid:not(.swiper-container) .product-items .product-item:before{background:none!important}
body.lic-v2.games-dark-template.catalog-category-view .page-products .products-grid:not(.swiper-container) .product-items .product-item:hover .product-item-info,
body.lic-v2.games-dark-template.catalog-category-view.page-products .products-grid:not(.swiper-container) .product-items .product-item:hover .product-item-info{border:0;background:transparent;box-shadow:none}

/* d. The two old blues (#3E9BF7, #20A2E8) come from the old theme's base link rule. Plain text links on CMS and legal pages, the contact e-mail, the blog previous/next links and two outlined buttons take the new link colour (5.6:1 on white). */
body.lic-v2.cms-page-view:not(.cms-index-index) .column.main a:not([class]),
body.lic-v2.cms-page-view .contact-cta .block-content>a,
body.lic-v2 .post-nextprev-hld a.nextprev-link{color:var(--lc-accent)}
body.lic-v2 button.action.cookie-allow-all,
body.lic-v2 button.action.captcha-reload{color:var(--lc-accent);border-color:var(--lc-accent)}
body.lic-v2 button.action.cookie-allow-all:hover,
body.lic-v2 button.action.captcha-reload:hover{background:var(--lc-accent);color:#fff}

/* f. Footer tap targets: every footer link is at least 44 px tall on phones and tablets (list links, the partner-letter picture link). */
@media (max-width:1023px){
  body.lic-v2 .page-footer ul.links li a{min-height:44px}
  body.lic-v2 .page-footer .certificates-logo li a{min-height:44px!important;align-items:center;justify-content:center}
  body.lic-v2 .page-header .switcher-customer .switcher-trigger{min-width:44px!important;justify-content:center}
}
