/* /terms, /privacy (tpl/en/udp/legal.tpl) — additions to the landing's css/base.css + css/sections.css + css/legal.css.
   The landing animates its menu, toast and footer logo with its own scripts (GSAP); this page uses assets/lv/legal.js,
   so the open / visible states are plain CSS here. */

/* menu overlay: the landing reveals the orange glass with GSAP (clip-path) */
.legal-page .menu__bg { transition: clip-path 0.7s var(--ease); }
.legal-page .menu.is-open .menu__bg { clip-path: inset(0 0 0 0); }
.legal-page .menu__inner { opacity: 0; transform: translateY(-1.6rem); transition: opacity 0.35s, transform 0.6s var(--ease); }
.legal-page .menu.is-open .menu__inner { opacity: 1; transform: none; transition-delay: 0.12s; }
.legal-page.is-menu-open { overflow: hidden; }

/* language lists are links here (the landing builds buttons with aria-selected) */
.legal-page .lang__list li { display: block; }
.legal-page .lang__option[aria-current="true"]::after {
    content: "";
    flex: none;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: var(--orange);
}
.legal-page .lang__list { max-height: min(60vh, 48rem); overflow-y: auto; overscroll-behavior: contain; }
[dir="rtl"] .legal-page .lang__option { text-align: right; }
/* Arabic: the landing bar keeps its wide padding on the left (logo side in LTR) — mirror it on phones */
@media (max-width: 767px) {
    [dir="rtl"] .legal-page .header__bar { padding: 0.125rem 1.87rem 0.125rem 0.125rem; }
}

/* footer: the big LAVELON LABS words are <img> (the landing inlines the SVGs to animate them) */
.legal-page .footer__brand-part img { display: block; width: 100%; height: auto; }
.legal-page .footer__list a[aria-current="page"] { color: var(--orange); }
/* «Licensing in progress» labels of the terminal (not links) — same rules as the inline <style> of tpl/en/index/index.tpl */
.legal-page .footer__soon { display: inline-flex; align-items: center; gap: 1.3rem; font-size: 2.26rem; line-height: 1; opacity: .55; cursor: default; }
.legal-page .footer__soon img { width: 3.2rem; height: 3.2rem; }
@media (min-width: 768px) { .legal-page .footer__soon { font-size: var(--fs-20); } }
@media (min-width: 1280px) { .legal-page .footer__soon { font-size: max(2.26rem, 15px); } }

/* lists inside a section (text files: lines starting with «- ») */
.doc-section__list { display: flex; flex-direction: column; gap: 0.8rem; padding-inline-start: 1.2em; list-style: disc; }
.doc-section__list li { font-size: 1.6rem; line-height: 1.5; color: #606060; }
@media (min-width: 768px) {
    .doc-section__list { padding-inline-start: calc(8.2rem + 1.2em); }
    .doc-section__list li { font-size: max(2.2rem, 15px); }
}

@media (prefers-reduced-motion: reduce) {
    .legal-page .menu__bg, .legal-page .menu__inner { transition: none; }
}
