/* legal.css: terms.php and privacy.php. Everything is scoped to .legal so it can't leak into other pages. */
.legal {
    --lg-panel: #161a24;
    --lg-panel2: #1c2130;
    --lg-line: #2a3142;
    --lg-text: #dde2ec;
    --lg-muted: #8e97ab;
    --lg-yel: #ffc61a;
    --lg-red: #ff5d62;
    --lg-grn: #3fd68a;
    --lg-blu: #4aa8ff;
    max-width: 1200px;
    padding: 6px 14px 40px;
    color: var(--lg-text);
}

/* ---------- header band: page tabs, title, date ---------- */
.legal .lg-head {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 0 0 26px;
    border-bottom: 3px solid var(--lg-yel);
    background: linear-gradient(180deg, transparent, var(--lg-panel) 70%);
}
.legal .lg-head::after {   /* halftone dots fading in from the right */
    content: '';
    position: absolute;
    inset: 0 0 0 40%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 198, 26, .22) 1.4px, transparent 1.8px) 0 0 / 11px 11px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 85%);
    mask-image: linear-gradient(90deg, transparent, #000 85%);
}
.legal .lg-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 6px;
    margin: 0 0 30px;
    padding-left: 8px;
}
.legal .lg-tabs a {
    display: inline-block;
    transform: skewX(-14deg);
    padding: 7px 18px 6px;
    background: var(--lg-panel2);
    border: 1px solid var(--lg-line);
    color: var(--lg-muted);
    font: 15px/1 BarlowCondensed-SemiBold, sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color .15s, border-color .15s;
}
.legal .lg-tabs a > span { display: inline-block; transform: skewX(14deg); }
.legal .lg-tabs a:hover { color: #fff; border-color: #48536b; }
.legal .lg-tabs a.on { background: var(--lg-yel); border-color: var(--lg-yel); color: #11141b; }
.legal .lg-kicker {
    position: relative;
    z-index: 1;
    margin: 0 0 2px 4px;
    color: var(--lg-yel);
    font: 15px BarlowCondensed-SemiBold, sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.legal .lg-title {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-family: DBLegends, BarlowCondensed-Bold, sans-serif;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: normal;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 3px 3px 0 #000, 0 0 24px rgba(255, 198, 26, .25);
}
.legal .lg-date {
    position: relative;
    z-index: 1;
    margin: 0 0 0 4px;
    color: var(--lg-muted);
    font: 16px BarlowCondensed-Medium, sans-serif;
    letter-spacing: 1px;
}
.legal .lg-date b { color: #fff; font-family: BarlowCondensed-SemiBold, sans-serif; font-weight: normal; }

/* ---------- body: contents on the left, text on the right ---------- */
.legal .lg-body {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}
.legal .lg-toc {
    position: sticky;
    top: 16px;
    padding: 16px 0 14px;
    background: var(--lg-panel);
    border: 1px solid var(--lg-line);
    border-top: 3px solid var(--lg-yel);
}
.legal .lg-toc p {
    margin: 0 18px 10px;
    color: var(--lg-muted);
    font: 13px BarlowCondensed-SemiBold, sans-serif;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.legal .lg-toc ol { list-style: none; margin: 0; padding: 0; }
.legal .lg-toc a {
    display: flex;
    gap: 12px;
    padding: 7px 18px;
    border-left: 3px solid transparent;
    color: #c3cad8;
    font: 17px/1.2 BarlowCondensed-Medium, sans-serif;
    transition: color .15s, background .15s, border-color .15s;
}
.legal .lg-toc a span { flex: none; width: 20px; color: var(--lg-muted); font-family: BarlowCondensed-SemiBold, sans-serif; }
.legal .lg-toc a:hover { color: #fff; background: var(--lg-panel2); }
.legal .lg-toc a.on { color: #fff; background: var(--lg-panel2); border-left-color: var(--lg-yel); }
.legal .lg-toc a.on span { color: var(--lg-yel); }
.legal .lg-toc .lg-sub { list-style: none; margin: 0 0 4px; padding: 0; }
.legal .lg-toc .lg-sub a { padding: 4px 18px 4px 50px; color: var(--lg-muted); font-size: 15px; }
.legal .lg-toc .lg-sub a:hover, .legal .lg-toc .lg-sub a.on { color: #fff; }

.legal .lg-main {
    max-width: 800px;
    font: 16px/1.75 system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
}
.legal .lg-main p { margin: 0 0 14px; }
.legal .lg-main a { color: var(--lg-yel); }
.legal .lg-main a:hover { text-decoration: underline !important; }
.legal .lg-main strong { color: #fff; }
.legal .lg-main code {
    padding: 1px 6px;
    background: var(--lg-panel2);
    border: 1px solid var(--lg-line);
    border-radius: 3px;
    color: var(--lg-yel);
    font-size: .9em;
}
.legal .lg-lead { font-size: 17px; color: #fff; }

/* ---------- sections ---------- */
.legal .lg-sec, .legal .lg-sec h3[id] { scroll-margin-top: 16px; }
.legal .lg-sec { margin-bottom: 46px; }
.legal .lg-sec > h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lg-line);
    color: #fff;
    font: 28px/1.1 BarlowCondensed-Bold, sans-serif;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.legal .lg-n {   /* the slanted section number */
    flex: none;
    display: inline-block;
    transform: skewX(-14deg);
    padding: 3px 10px 2px;
    background: var(--lg-yel);
    color: #11141b;
    font: 18px/1.1 BarlowCondensed-Bold, sans-serif;
    letter-spacing: 1px;
}
.legal .lg-n > span { display: inline-block; transform: skewX(14deg); }
.legal .lg-sec h3 {
    margin: 30px 0 10px;
    color: var(--lg-yel);
    font: 21px/1.2 BarlowCondensed-SemiBold, sans-serif;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.legal .lg-sec h4 {
    margin: 22px 0 8px;
    color: #fff;
    font: 18px/1.2 BarlowCondensed-SemiBold, sans-serif;
    letter-spacing: .5px;
}
.legal .lg-sec h3:first-child, .legal .lg-sec h4:first-child { margin-top: 0; }

/* plain lists: a slanted yellow marker instead of a bullet */
.legal .lg-list { list-style: none; margin: 0 0 16px; padding: 0; }
.legal .lg-list > li { position: relative; margin-bottom: 10px; padding-left: 24px; }
.legal .lg-list > li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: .62em;
    width: 9px;
    height: 9px;
    background: var(--lg-yel);
    transform: skewX(-14deg);
}
.legal .lg-list > li p { margin: 0 0 4px; }

/* rule blocks (terms: the database rules and the IP notes) */
.legal .lg-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 18px; }
.legal .lg-rule {
    --c: var(--lg-red);
    position: relative;
    padding: 16px 18px 14px;
    background: var(--lg-panel);
    border: 1px solid var(--lg-line);
    border-top: 3px solid var(--c);
}
.legal .lg-rule.ok { --c: var(--lg-grn); }
.legal .lg-rule.gm { --c: var(--lg-blu); }
.legal .lg-rule.us { --c: var(--lg-yel); }
.legal .lg-rule h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    color: #fff;
    font: 19px/1.2 BarlowCondensed-Bold, sans-serif;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.legal .lg-rule h4 i {   /* the ✕ / ✓ marker */
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 22px;
    transform: skewX(-14deg);
    background: var(--c);
    color: #11141b;
    font: 15px/1 system-ui, sans-serif;
    font-style: normal;
    font-weight: 800;
}
.legal .lg-rule h4 i > span { transform: skewX(14deg); }
.legal .lg-rule p { margin: 0; font-size: 15px; line-height: 1.7; }
.legal .lg-rule.wide { grid-column: 1 / -1; }

/* a highlighted note */
.legal .lg-note {
    margin: 0 0 16px;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(255, 198, 26, .1), transparent 70%);
    border-left: 4px solid var(--lg-yel);
}
.legal .lg-note p:last-child { margin-bottom: 0; }
.legal .lg-main > .lg-note:first-child { margin-bottom: 40px; }   /* privacy: the intro above section 01 */

/* privacy: definitions as a two-column table */
.legal .lg-defs {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    margin: 0 0 18px;
    border: 1px solid var(--lg-line);
    background: var(--lg-panel);
}
.legal .lg-defs dt, .legal .lg-defs dd { margin: 0; padding: 12px 16px; border-top: 1px solid var(--lg-line); }
.legal .lg-defs dt:first-of-type, .legal .lg-defs dt:first-of-type + dd { border-top: 0; }
.legal .lg-defs dt {
    background: var(--lg-panel2);
    color: var(--lg-yel);
    font: 18px/1.4 BarlowCondensed-SemiBold, sans-serif;
    letter-spacing: .5px;
}
.legal .lg-defs dd { font-size: 15px; line-height: 1.7; }

/* privacy: the cookie types */
.legal .lg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.legal .lg-card { padding: 16px 18px 14px; background: var(--lg-panel); border: 1px solid var(--lg-line); border-top: 3px solid var(--lg-blu); }
.legal .lg-card h4 { margin: 0 0 10px; color: #fff; font: 19px/1.2 BarlowCondensed-Bold, sans-serif; text-transform: uppercase; }
.legal .lg-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.legal .lg-meta span {
    padding: 2px 9px;
    background: var(--lg-panel2);
    border: 1px solid var(--lg-line);
    color: var(--lg-muted);
    font: 14px/1.4 BarlowCondensed-Medium, sans-serif;
    letter-spacing: .5px;
}
.legal .lg-meta b { color: #fff; font-weight: normal; font-family: BarlowCondensed-SemiBold, sans-serif; }
.legal .lg-card p { margin: 0; font-size: 15px; line-height: 1.7; }

/* privacy: contact box */
.legal .lg-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px;
    background: var(--lg-panel);
    border: 1px solid var(--lg-line);
    border-left: 4px solid var(--lg-yel);
}
.legal .lg-contact span { color: var(--lg-muted); font: 16px BarlowCondensed-SemiBold, sans-serif; letter-spacing: 2px; text-transform: uppercase; }
.legal .lg-contact a { font: 22px BarlowCondensed-SemiBold, sans-serif; letter-spacing: .5px; }

/* ---------- tablet and phone ---------- */
@media (max-width: 991px) {
    .legal .lg-body { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .legal .lg-toc { position: static; }
    .legal .lg-toc ol { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .legal .lg-rules, .legal .lg-cards { grid-template-columns: minmax(0, 1fr); }
    .legal .lg-defs { grid-template-columns: minmax(0, 1fr); }
    .legal .lg-defs dd { border-top: 0; padding-top: 0; }
    .legal .lg-defs dt { background: none; padding-bottom: 4px; }
}
@media (max-width: 560px) {
    .legal .lg-toc ol { grid-template-columns: minmax(0, 1fr); }
    .legal .lg-tabs { margin-bottom: 22px; }
    .legal .lg-tabs a { padding: 7px 13px 6px; font-size: 14px; letter-spacing: 1px; }
    .legal .lg-sec > h2 { font-size: 24px; }
    .legal .lg-main { font-size: 15px; }
}
