/* Let Me Discover v2: privacy, terms and cookie policy (website/tours/v2/legal). Loads after lmd-v2.css (tokens) and
   lmd-tour.css (the back button, the panel blue, the cookie card).
   Desktop: one screen on the home split background; the title, "On this page" and the page picture on the left,
   the text in the blue reading panel on the right (only the panel scrolls). Phones: one column, "On this page" as chips. */
.lmd-lg {
    min-height: 100vh; padding: 76px var(--lmd-gutter) 32px; font-family: var(--lmd-body); color: var(--lmd-ink);
    background: linear-gradient(90deg, #f2f9ff 0%, #deedfb 30%, #c6def5 65%, #afd0f0 100%);
}
.lmd-lg__in {
    height: calc(100vh - 108px); min-height: 520px; max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px);
}

/* left */
.lmd-lg__side { min-height: 0; display: flex; flex-direction: column; animation: lmd-tp-rise .8s var(--lmd-ease-out) .05s both; }
.lmd-lg__side h1 {
    margin: 0 0 22px; font: 700 clamp(28px, 2.6vw, 40px)/1.1 var(--lmd-display); letter-spacing: -.01em; color: var(--lmd-navy);
    text-wrap: balance;
}
.lmd-lg__toc small { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lmd-muted); }
.lmd-lg__toc ol { margin: 0; padding: 0; list-style: none; }
.lmd-lg__toc a {
    display: block; padding: 8px 14px; margin: 2px 0; border-radius: 12px;
    font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--lmd-ink); text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.lmd-lg__toc a:hover { background: rgba(255, 255, 255, .7); color: var(--lmd-ink); }
.lmd-lg__toc a.is-on { background: var(--lmd-btn); color: var(--lmd-white); text-shadow: 0 1px 2px rgba(15, 61, 102, .3); }

/* the page's picture, at the bottom of the left column */
.lmd-lg__pic { flex: 1; min-height: 120px; margin-top: 16px; display: flex; align-items: flex-end; justify-content: center; }
.lmd-lg__pic img { width: min(100%, 240px); max-height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(15, 61, 102, .25)); animation: lmd-lg-float 6s ease-in-out infinite; }
@keyframes lmd-lg-float { 50% { transform: translateY(-8px); } }
/* until the picture is made: a soft glass circle in its place */
.lmd-lg__pic.is-empty::before {
    content: ""; width: 150px; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9), rgba(92, 200, 255, .35) 60%, rgba(52, 134, 204, .25));
    border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 24px 40px -20px rgba(15, 61, 102, .45);
}
.lmd-lg__ask { margin: 14px 0 0; font-size: 14px; color: var(--lmd-muted); }
.lmd-lg__ask a { font-weight: 700; color: var(--lmd-wave); text-underline-offset: 3px; }

/* right: the reading panel */
.lmd-lg__panel {
    min-height: 0; overflow-y: auto; border-radius: 24px; padding: clamp(24px, 3vw, 44px) clamp(24px, 3.5vw, 56px);
    color: var(--lmd-white); background: var(--lmd-tp-blue); border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 30px 60px -30px rgba(15, 45, 90, .55);
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .5) transparent; scroll-behavior: smooth;
    animation: lmd-tp-in .8s var(--lmd-ease-out) .15s both;
}
.lmd-lg__text { max-width: 820px; font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.lmd-lg__text h2 {
    scroll-margin-top: 24px; margin: 36px 0 12px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .22);
    font: 700 22px/1.3 var(--lmd-display); color: var(--lmd-white);
}
.lmd-lg__text h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.lmd-lg__text p { margin: 0 0 14px; }
.lmd-lg__text b { color: var(--lmd-white); }
.lmd-lg__text a { color: var(--lmd-white); text-decoration: underline; text-underline-offset: 3px; }
.lmd-lg__lead { font-size: 1.12em; color: var(--lmd-white); padding-bottom: 6px; }

/* short laptop screens */
@media (min-width: 901px) and (max-height: 760px) {
    .lmd-lg { padding-top: 70px; padding-bottom: 24px; }
    .lmd-lg__in { height: calc(100vh - 94px); }
    .lmd-lg__side h1 { margin-bottom: 14px; }
    .lmd-lg__toc a { padding: 6px 12px; }
}

/* phones and small tablets: one column that scrolls; "On this page" becomes a row of chips that stays at the top */
@media (max-width: 900px) {
    .lmd-lg { padding: 76px 0 28px; }
    .lmd-lg__in { height: auto; min-height: 0; display: block; }
    .lmd-lg__side { display: block; padding: 0 var(--lmd-gutter); }
    .lmd-lg__side h1 { margin-bottom: 12px; }
    .lmd-lg__toc {
        position: sticky; top: 0; z-index: 5; margin: 0 calc(var(--lmd-gutter) * -1); padding: 10px var(--lmd-gutter);
        background: rgba(242, 249, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    }
    .lmd-lg__toc small { display: none; }
    .lmd-lg__toc ol { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
    .lmd-lg__toc ol::-webkit-scrollbar { display: none; }
    .lmd-lg__toc a { flex-shrink: 0; margin: 0; padding: 7px 12px; border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, .75); font-size: 13px; }
    .lmd-lg__pic, .lmd-lg__ask { display: none; }
    .lmd-lg__panel { overflow: visible; margin: 14px var(--lmd-gutter) 0; padding: 22px 20px; }
    .lmd-lg__text { font-size: 16px; }
    .lmd-lg__text h2 { font-size: 19px; scroll-margin-top: 70px; margin-top: 26px; padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .lmd-lg *, .lmd-lg *::before { animation: none !important; transition: none !important; }
}
