/* Language switcher next to Web Trader (template/i18n/apply.py). Colours come from the variables at the end,
   which each template overrides to match its header. */
.ap-lang { position: relative; display: inline-flex; align-items: center; margin-right: 14px; z-index: 1001; }
.ap-lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--ap-lang-line); border-radius: 999px;
  background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .04em; line-height: 1; cursor: pointer; }
.ap-lang-btn:hover, .ap-lang.is-open .ap-lang-btn { border-color: var(--ap-lang-accent); }
.ap-lang-btn:focus-visible { outline: 2px solid var(--ap-lang-accent); outline-offset: 2px; }
.ap-lang-btn svg { transition: transform .2s ease; }
.ap-lang.is-open .ap-lang-btn svg { transform: rotate(180deg); }
.ap-lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px; padding: 6px; border-radius: 12px;
  background: var(--ap-lang-bg); color: var(--ap-lang-fg); box-shadow: 0 14px 36px rgba(0, 0, 0, .22); border: 1px solid var(--ap-lang-line); display: none; }
.ap-lang.is-open .ap-lang-menu { display: block; }
.ap-lang-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: inherit; text-decoration: none;
  font-size: 14px; line-height: 1.2; white-space: nowrap; }
.ap-lang-menu a b { min-width: 24px; font-weight: 700; font-size: 12px; letter-spacing: .05em; opacity: .55; }
.ap-lang-menu a:hover { background: var(--ap-lang-hover); }
.ap-lang-menu a[aria-current="page"] { background: var(--ap-lang-hover); font-weight: 600; }
.ap-lang-menu a[aria-current="page"] b { color: var(--ap-lang-accent); opacity: 1; }
.ap-legal-notice { margin: 0 auto 24px; padding: 14px 18px; border-radius: 10px; border: 1px solid var(--ap-lang-line);
  background: var(--ap-lang-hover); font-size: 14px; line-height: 1.6; }
@media (max-width: 991px) {
  .ap-lang { margin-right: 8px; }
  .ap-lang-btn { height: 32px; padding: 0 10px; font-size: 13px; }
}
.ap-lang, .ap-legal-notice { --ap-lang-bg:#fff;--ap-lang-fg:#171c38;--ap-lang-line:rgba(23,28,56,.14);--ap-lang-hover:#f4f1ff;--ap-lang-accent:#6139fb; }
@media (max-width: 991px) { .ap-lang { flex-direction: column; align-items: center; margin: 0; } .ap-lang-menu { position: static; margin-top: 6px; min-width: 0; box-shadow: none; } .ap-lang.is-open .ap-lang-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; } }
@media (max-width: 991px) { .ap-lang.ap-lang--bar { flex-direction: row; margin: 0 4px 0 0; position: relative; } .ap-lang.ap-lang--bar .ap-lang-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 220px; margin: 0; display: none; box-shadow: 0 14px 36px rgba(0,0,0,.22); } .ap-lang.ap-lang--bar.is-open .ap-lang-menu { display: block; } }

:where(.ap-h1){font-size:2em;margin-block:.67em}:where(.ap-h2){font-size:1.5em;margin-block:.83em}:where(.ap-h3){font-size:1.17em;margin-block:1em}:where(.ap-h4){font-size:1em;margin-block:1.33em}:where(.ap-h5){font-size:.83em;margin-block:1.67em}:where(.ap-h6){font-size:.67em;margin-block:2.33em}
