/* Eve WebTools — the legal notice and privacy page (www/legal/). The chrome (top bar, footer, colours, fonts) comes from
   /404/404.css; this is the page: a banner over the image of the moment, the section tabs, the panels. Wide and tall
   enough, the top bar stays and only the page under it scrolls; on a narrow screen the whole page scrolls (404.css),
   the top bar pinned by /lib/ewt-topbar.js. */

[hidden] { display: none !important; }

/* the site's scrollbar (brand book): 10px, one dark thumb #313131 -> #6b6b6b -> #9e9e9e */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-button { display: none; }
*::-webkit-scrollbar-thumb { background-color: #313131; border: 2px solid transparent; background-clip: padding-box; border-radius: 0; min-height: 28px; }
*::-webkit-scrollbar-thumb:hover { background-color: #6b6b6b; }
*::-webkit-scrollbar-thumb:active { background-color: #9e9e9e; }

#lgWrap { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; scroll-padding-top: 64px; }

/* the banner: the image of the moment behind the title (as the Atlas, IntelParser and Planetary roadmaps) */
#lgHead { position: relative; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px clamp(16px, 4vw, 48px) 16px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--borderColor31); }
#lgHead::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: var(--moment) 60% 45% / cover no-repeat; filter: saturate(.85) brightness(.75); }
#lgHead::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, #0d0d0df6 4%, #0d0d0d80 45%, transparent 85%); }
#lgHead h1 { margin: 0; font-family: 'Shentox Light', 'Segoe UI', sans-serif; font-weight: normal; font-size: 1.7em; letter-spacing: 4px; color: var(--themeColor); }
#lgHead .sub { font-size: 0.7857em; letter-spacing: 1px; text-transform: uppercase; color: #b0b0b0; }

/* the section tabs: they stay on top while the page scrolls; brand-book buttons (hover = brighter text, here = the 2px mark) */
#lgTabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 0; flex-wrap: wrap; padding: 0 clamp(4px, 4vw - 12px, 36px); background-color: #1b1b1b; border-bottom: 1px solid var(--borderColor31); }
#lgTabs a { padding: 12px 12px 13px; font-size: 0.8571em; letter-spacing: 1px; text-transform: uppercase; color: #6b6b6b; text-decoration: none; transition: color .15s linear; white-space: nowrap; }
#lgTabs a:hover { color: #9e9e9e; }
#lgTabs a.on, #lgTabs a.on:hover { color: #d2d2d2; box-shadow: inset 0 -2px 0 #d2d2d2; }
#lgTabs a:focus-visible { outline: 1px solid #d2d2d2; outline-offset: -3px; }

#lgBody { max-width: 62em; margin: 0 auto; padding: 22px clamp(12px, 3vw, 24px) 36px; display: flex; flex-direction: column; gap: 18px; line-height: 1.55; }
.lgPanel { background-color: var(--backgroundColor); border: 1px solid var(--borderColor31); padding: 18px 22px 20px; scroll-margin-top: 60px; }
.lgPanel h2 { margin: 0 0 14px; font-family: 'Shentox Light', 'Segoe UI', sans-serif; font-weight: normal; font-size: 1.2857em; letter-spacing: 3px; color: var(--themeColor); }
.lgPanel h2 .fr { margin-left: 10px; font-size: 0.6em; letter-spacing: 1px; text-transform: none; color: var(--textColor2); }
.lgPanel h3 { margin: 4px 0 8px; font-family: 'Shentox Medium', 'Segoe UI', sans-serif; font-weight: normal; font-size: 0.7857em; letter-spacing: 1.5px; text-transform: uppercase; color: var(--textColor2); }
.lgPanel p { margin: 0 0 10px; font-size: 0.9286em; }
.lgPanel p:last-child { margin-bottom: 0; }
.lgPanel a { color: var(--themeColor); text-decoration: none; border-bottom: 1px solid var(--borderColor31); }
.lgPanel a:hover { border-bottom-color: var(--textColor2); }
.lgPanel b { font-weight: normal; color: var(--themeColor); }
.lgPanel i { font-style: normal; color: var(--textColor); }
.lgPanel code { font-family: 'Consolas', 'Menlo', monospace; font-size: 0.9em; color: var(--textColor); background-color: #00000060; padding: 0 5px; }
.lgLead { color: var(--textColor); }
.lgNote { color: var(--textColor2); font-size: 0.8571em !important; margin-top: 14px !important; }
.lgPanel .why { color: var(--textColor2); font-size: 0.8571em; }

/* the notice: label, then the fact */
.lgFacts { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 0; margin: 0; font-size: 0.9286em; }
.lgFacts dt, .lgFacts dd { margin: 0; padding: 9px 0; border-top: 1px solid #d2d2d20d; }
.lgFacts dt:first-of-type, .lgFacts dt:first-of-type + dd { border-top: 0; padding-top: 0; }
.lgFacts dt { font-size: 0.8462em; letter-spacing: 1px; text-transform: uppercase; color: var(--textColor2); padding-top: 11px; }
.lgFacts dt:first-of-type { padding-top: 2px; }
.lgFacts dd { color: var(--textColor); }

/* one row per kind of data: what it is on the left, the facts on the right */
.lgRows { display: flex; flex-direction: column; margin-bottom: 16px; }
.lgRows:last-child { margin-bottom: 0; }
.lgRow { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 18px; padding: 12px 0; border-top: 1px solid #d2d2d20d; }
.lgRow:first-child { border-top: 0; padding-top: 2px; }
.lgRow .k { font-family: 'Shentox Medium', 'Segoe UI', sans-serif; font-size: 0.8571em; letter-spacing: 1px; text-transform: uppercase; color: var(--themeColor); padding-top: 2px; }

/* the logged-in table */
.lgTable { display: flex; flex-direction: column; margin-top: 14px; font-size: 0.8929em; }
.lgTr { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.3fr); gap: 14px; padding: 10px 0; border-top: 1px solid #d2d2d20d; }
.lgTh { border-top: 0; padding-top: 0; font-size: 0.8em; letter-spacing: 1px; text-transform: uppercase; color: var(--textColor2); }
.lgTr:not(.lgTh) span:not(:first-child) { color: var(--textColor); }

/* the one button (the analytics choice): brand book */
.lgBtn { font-family: 'Shentox Medium', 'Segoe UI', sans-serif; font-size: 0.8571em; letter-spacing: 1px; text-transform: uppercase; padding: 0.6em 1.6em calc(0.6em + 2px); line-height: 1.2; background: none; border: 1px solid #313131; color: #6b6b6b; cursor: pointer; transition: color .15s linear; }
.lgBtn:hover { color: #9e9e9e; }
.lgBtn:active { color: #d2d2d2; box-shadow: inset 0 -2px 0 #d2d2d2; }
.lgBtn:focus-visible { outline: 1px solid #d2d2d2; outline-offset: 2px; }

/* narrow: the page scrolls as a whole (404.css), the tabs stick under the pinned top bar */
@media (max-width: 1100px) {
    #lgWrap { overflow: visible; flex: none; }
    #lgTabs { top: 64px; }
    html { scroll-padding-top: 112px; }
}
@media (max-width: 800px) {
    .lgRow, .lgFacts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .lgFacts dt { border-top: 1px solid #d2d2d20d; padding-bottom: 0; }
    .lgFacts dd { border-top: 0; padding-top: 2px; }
    .lgFacts dt:first-of-type { border-top: 0; }
    .lgTh { display: none; }
    .lgTr { grid-template-columns: minmax(0, 1fr); gap: 3px; }
    .lgTr:nth-child(2) { border-top: 0; }
    .lgPanel { padding: 14px 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { #lgWrap, html { scroll-behavior: auto; } }
