/*
 * Meetem's public chrome: the floating top bar, the phone sheet, the theme switch, the footer and
 * the background behind the top of the landing and help pages. Tokens only (meetem-tokens.css and,
 * by day, meetem-tokens-light.css). Behaviour: /_content/Meetem.Meeting/js/site-chrome.js and
 * site-ambient.js.
 *
 * The bar is fixed, and its height never changes: the pill inside it shrinks on scroll, so nothing
 * on the page moves. The page leaves room for it with --mt-bar-space.
 */
:root { --mt-bar-space: 5.5rem; }
body { background: var(--mt-page); color: var(--mt-text); }

/* ── the header and the pill ──────────────────────────────────────────────────────────────── */
.mt-header {
    position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 1000;
    height: var(--mt-bar-space); padding: 14px var(--mt-space-4) 0; pointer-events: none;
}
.mt-bar {
    pointer-events: auto; position: relative;
    display: flex; align-items: center; gap: var(--mt-space-2);
    max-width: 1180px; height: 60px; margin-inline: auto; padding-inline: var(--mt-space-3) 8px;
    background: var(--mt-glass); border: 1px solid var(--mt-glass-line); border-radius: var(--mt-radius-pill);
    -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 12px 32px -18px var(--mt-scrim), inset 0 1px 0 var(--mt-hairline);
    transition: height 300ms var(--mt-ease), max-width 300ms var(--mt-ease), box-shadow 300ms var(--mt-ease);
}
.mt-header.is-scrolled .mt-bar { height: 52px; max-width: 1100px; box-shadow: 0 18px 40px -18px var(--mt-scrim), inset 0 1px 0 var(--mt-hairline); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .mt-bar { background: var(--mt-surface); } }

.mt-bar-brand {
    display: inline-flex; align-items: center; gap: 10px; flex: none;
    color: var(--mt-text) !important; font-weight: 700; font-size: 1.125rem; text-decoration: none;
}
.mt-bar-brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 18px var(--mt-glow); }

.mt-nav { position: relative; margin-inline: auto; }
.mt-nav-list { position: relative; display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mt-nav-list a {
    position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
    border-radius: var(--mt-radius-pill); color: var(--mt-text-muted) !important; font-weight: 600; font-size: var(--mt-text-sm);
    text-decoration: none; white-space: nowrap; transition: color var(--mt-base) var(--mt-ease);
}
.mt-nav-list a:hover, .mt-nav-list a:focus-visible, .mt-nav-list a[aria-current="page"] { color: var(--mt-text) !important; }
.mt-nav-glow {
    position: absolute; z-index: 0; left: 0; inset-block: 2px; width: var(--glow-w, 0px); transform: translateX(var(--glow-x, 0px));
    border-radius: var(--mt-radius-pill); background: var(--mt-glow);
    box-shadow: inset 0 0 0 1px var(--mt-glow-edge), 0 0 22px -4px var(--mt-glow-edge);
    opacity: 0; pointer-events: none;
    transition: transform 320ms var(--mt-ease), width 320ms var(--mt-ease), opacity var(--mt-base) var(--mt-ease);
}
.mt-nav-glow.is-on { opacity: 1; }
.mt-nav-glow.is-instant { transition: none; }

.mt-bar-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.mt-nav + .mt-bar-tools { margin-inline-start: 0; }
.mt-round {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px;
    border: 1px solid var(--mt-border); border-radius: var(--mt-radius-pill); background: transparent;
    color: var(--mt-text-muted); font: inherit; font-size: var(--mt-text-sm); font-weight: 600; text-decoration: none; cursor: pointer;
}
.mt-round:hover { color: var(--mt-text); background: var(--mt-surface-hover); }
.mt-round .mt-icon { width: 18px; height: 18px; }
.mt-theme .mt-moon { display: none; }
:root:not([data-mt-theme="light"]) .mt-theme .mt-sun { display: none; }
:root:not([data-mt-theme="light"]) .mt-theme .mt-moon { display: inline-block; }
.mt-ghost {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--mt-radius-pill);
    color: var(--mt-text) !important; font-weight: 600; font-size: var(--mt-text-sm); text-decoration: none; white-space: nowrap;
}
.mt-ghost:hover { background: var(--mt-surface-hover); }
.mt-cta {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--mt-radius-pill);
    background: var(--mt-accent); color: var(--mt-on-accent) !important; font-weight: 700; font-size: var(--mt-text-sm);
    text-decoration: none; white-space: nowrap; box-shadow: 0 6px 20px -8px var(--mt-glow-edge);
}
.mt-cta:hover { background: var(--mt-accent-hover); }
.mt-burger { display: none; }
.mt-bar .dropdown-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 4px; border-radius: var(--mt-radius-pill); color: var(--mt-text) !important; text-decoration: none; }
.mt-bar .dropdown-toggle:hover { background: var(--mt-surface-hover); }
.mt-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mt-accent); color: var(--mt-on-accent); font-weight: 700; object-fit: cover; }

@media (max-width: 1023.98px) {
    .mt-bar .mt-nav { display: none; }
    .mt-burger { display: inline-flex; }
    .mt-bar .mt-nav + .mt-bar-tools { margin-inline-start: auto; }
}
@media (max-width: 639.98px) {
    .mt-header { padding-inline: 10px; }
    .mt-bar { padding-inline: 10px 6px; }
    .mt-bar .mt-cta, .mt-bar .mt-ghost, .mt-bar .mt-lang, .mt-bar .mt-account-name { display: none; }
}

/* ── the sheet ────────────────────────────────────────────────────────────────────────────── */
.mt-sheet {
    position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; gap: var(--mt-space-4);
    padding: 14px var(--mt-space-4) var(--mt-space-6); overflow-y: auto; overscroll-behavior: contain;
    background: color-mix(in srgb, var(--mt-page) 84%, transparent);
    -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%);
    animation: mt-sheet-in 240ms var(--mt-ease) both;
}
.mt-sheet[hidden] { display: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .mt-sheet { background: var(--mt-page); } }
@keyframes mt-sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mt-sheet-top {
    display: flex; align-items: center; justify-content: space-between; height: 60px; padding-inline: var(--mt-space-3) 8px;
    background: var(--mt-glass); border: 1px solid var(--mt-glass-line); border-radius: var(--mt-radius-pill);
}
.mt-sheet-title { margin: 0; font-weight: 700; font-size: 1.125rem; color: var(--mt-text); }
.mt-sheet-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mt-sheet-links a {
    display: flex; align-items: center; min-height: 56px; padding: 0 var(--mt-space-4); border-radius: var(--mt-radius-md);
    color: var(--mt-text) !important; font-weight: 700; font-size: 1.375rem; text-decoration: none;
}
.mt-sheet-links a:hover { background: var(--mt-surface-hover); }
.mt-sheet-links a[aria-current="page"] { background: var(--mt-glow); box-shadow: inset 0 0 0 1px var(--mt-glow-edge); }
.mt-sheet-row { display: flex; flex-wrap: wrap; gap: var(--mt-space-2); }
.mt-sheet-row .mt-round { height: var(--mt-touch); padding: 0 var(--mt-space-4); }
.mt-sheet .mt-cta, .mt-sheet .mt-ghost { justify-content: center; min-height: var(--mt-touch); }
.mt-sheet .mt-ghost { border: 1px solid var(--mt-border); }
html.site-locked, html.site-locked body { overflow: hidden; }

/* ── footer ───────────────────────────────────────────────────────────────────────────────── */
.mt-footer { position: relative; z-index: 1; background: var(--mt-surface); border-top: 1px solid var(--mt-border); color: var(--mt-text-muted); }
.mt-footer-row { max-width: 1180px; margin: 0 auto; padding: var(--mt-space-6) var(--mt-space-5) var(--mt-space-4); display: flex; flex-wrap: wrap; gap: var(--mt-space-5); align-items: center; justify-content: space-between; }
.mt-footer-brand { display: flex; align-items: center; gap: 10px; }
.mt-footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.mt-footer-brand strong { color: var(--mt-text); display: block; }
.mt-footer nav { display: flex; flex-wrap: wrap; gap: var(--mt-space-2) var(--mt-space-5); }
.mt-footer a { color: var(--mt-text-muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.mt-footer a:hover { color: var(--mt-text); text-decoration: underline; }
.mt-footer-base { max-width: 1180px; margin: 0 auto; padding: var(--mt-space-3) var(--mt-space-5) var(--mt-space-5); border-top: 1px solid var(--mt-hairline); font-size: var(--mt-text-sm); }

/* ── the background behind the top of the page ────────────────────────────────────────────── */
.main-content { position: relative; isolation: isolate; }
.site-ambient {
    position: absolute; z-index: -1; inset-inline: 0; inset-block-start: 0; height: min(150vh, 1400px);
    overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent); mask-image: linear-gradient(to bottom, black 55%, transparent);
    --ambient-dot: var(--mt-dust); --ambient-dot-2: var(--mt-accent-strong); --ambient-line: var(--mt-dust-line);
}
.site-aurora { position: absolute; inset: 0; }
.site-aurora i {
    position: absolute; display: block; width: 60vw; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(closest-side, var(--aurora), transparent);
    animation: site-drift 30s ease-in-out infinite alternate; animation-play-state: paused;
}
.site-aurora i:nth-child(1) { --aurora: var(--mt-aurora-1); inset-block-start: -24%; inset-inline-end: -10%; }
.site-aurora i:nth-child(2) { --aurora: var(--mt-aurora-2); inset-block-start: 6%; inset-inline-start: -20%; width: 56vw; animation-duration: 36s; animation-direction: alternate-reverse; }
.site-aurora i:nth-child(3) { --aurora: var(--mt-aurora-3); inset-block-start: 36%; inset-inline-start: 28%; width: 44vw; animation-duration: 42s; }
.site-ambient.is-running .site-aurora i { animation-play-state: running; }
.site-ambient.is-still .site-aurora i { animation: none; }
@keyframes site-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(5vw, 5vh, 0) scale(1.14); } }
@media (max-width: 1023.98px) {
    .site-aurora i, .site-aurora i:nth-child(n) { animation-duration: 4.8s; animation-iteration-count: 1; animation-direction: normal; animation-fill-mode: both; }
}
.site-dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-motion {
    position: absolute; z-index: 5; inset-block-start: var(--mt-bar-space); inset-inline-end: var(--mt-space-5);
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px;
    border: 1px solid var(--mt-glass-line); border-radius: var(--mt-radius-pill); background: var(--mt-glass);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    color: var(--mt-text-muted); font: inherit; font-size: var(--mt-text-xs); font-weight: 600; cursor: pointer;
}
.site-motion:hover { color: var(--mt-text); }
.site-motion svg { width: 14px; height: 14px; }
.site-motion .is-play { display: none; }
.site-motion[data-paused] .is-play { display: block; }
.site-motion[data-paused] .is-pause { display: none; }
.site-motion[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
    .mt-bar, .mt-nav-glow, .mt-nav-list a { transition: none; }
    .mt-sheet { animation: none; }
    .site-aurora i { animation: none; }
}

/* ── the page under the bar, and the skip link ────────────────────────────────────────────── */
.main-content { padding-top: var(--mt-bar-space); min-height: calc(100vh - 12rem); width: 100%; max-width: 100vw; overflow-x: clip; }
.main-content:focus { outline: none; }
.mt-skip {
    position: absolute; inset-block-start: -100px; inset-inline-start: var(--mt-space-4); z-index: 4000;
    padding: var(--mt-space-3) var(--mt-space-4); border-radius: 0 0 var(--mt-radius-md) var(--mt-radius-md);
    background: var(--mt-accent); color: var(--mt-on-accent) !important; font-weight: 700; text-decoration: none;
}
.mt-skip:focus { inset-block-start: 0; }

/* ── a document page (the privacy notice) ─────────────────────────────────────────────────── */
.mt-doc { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 2rem 1.25rem 4rem; line-height: 1.65; color: var(--mt-text-muted); }
.mt-doc h1, .mt-doc h2 { color: var(--mt-text); }
.mt-doc h2 { font-size: 1.375rem; margin: 2rem 0 .75rem; }
.mt-doc-note { padding: .75rem 1rem; border-radius: var(--mt-radius-md); background: var(--mt-accent-soft); color: var(--mt-text); }
:root:not([lang="ar"]) .mt-doc-note { display: none; }
