/* Shared legal pages (Privacy + Terms) — match LiteByte marketing chrome */

.lb-legal-page {
    padding: 0 0 5rem;
    background: var(--dark-bg, #0f172a);
    color: rgba(255, 255, 255, 0.82);
}

/* Theme paints bare <header> mint; hero must stay a <div> */
.lb-legal-hero {
    padding: 2.5rem 0 2.25rem;
    margin: 0;
    background:
        radial-gradient(ellipse 55% 70% at 100% 0%, rgba(106, 250, 166, 0.07), transparent 50%),
        var(--dark-bg, #0f172a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lb-legal-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--primary-color, #6afaa6);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    -webkit-text-fill-color: var(--primary-color, #6afaa6);
}

.lb-legal-hero__eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: var(--primary-color, #6afaa6);
    border-radius: 2px;
}

/* Kill theme gradient text on all legal headings */
.lb-legal-page h1,
.lb-legal-page h2,
.lb-legal-page h3,
.lb-legal-page h4 {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
}

.lb-legal-hero h1 {
    font-size: clamp(2rem, 3.8vw, 2.75rem) !important;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 0.6rem !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.lb-legal-hero__meta {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.95rem;
    margin: 0;
    max-width: none;
    line-height: 1.5;
}

.lb-legal-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
}

@media (min-width: 992px) {
    .lb-legal-layout {
        display: grid;
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 2.75rem;
        align-items: start;
        padding-top: 2.5rem;
    }
}

.lb-legal-toc {
    /* Theme sets bare `nav { height: 0 }` below ~992px — keep TOC usable */
    height: auto !important;
    min-height: 0;
    background: rgba(26, 34, 52, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 1rem 0.9rem 1rem 1rem;
    overflow: visible;
}

@media (min-width: 992px) {
    .lb-legal-toc {
        position: sticky;
        top: calc(var(--lb-header-height, 76px) + 1rem);
    }
}

.lb-legal-toc h2 {
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4) !important;
    margin: 0 0 0.65rem !important;
    font-weight: 600;
    line-height: 1.2;
}

.lb-legal-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.lb-legal-toc li {
    counter-increment: toc;
    margin: 0;
}

.lb-legal-toc a {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.4rem 0.35rem;
    margin: 0 -0.35rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.35;
    transition: color 0.15s ease, background 0.15s ease;
}

.lb-legal-toc a::before {
    content: counter(toc);
    flex-shrink: 0;
    width: 1.1rem;
    color: var(--primary-color, #6afaa6);
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.9;
    font-variant-numeric: tabular-nums;
}

.lb-legal-toc a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.lb-legal-body {
    max-width: none;
    min-width: 0;
    padding: 0 0 0.5rem;
}

.lb-legal-body > p:first-of-type {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 1.75rem;
    line-height: 1.7;
}

.lb-legal-body h2 {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: #fff !important;
    margin: 2.35rem 0 0.8rem !important;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    scroll-margin-top: calc(var(--lb-header-height, 76px) + 1rem);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.lb-legal-body h2:first-of-type {
    margin-top: 0 !important;
    padding-top: 0;
    border-top: none;
}

.lb-legal-body h3 {
    font-size: 1rem !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 1.4rem 0 0.5rem !important;
    line-height: 1.35;
}

.lb-legal-body p,
.lb-legal-body li {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    font-size: 0.97rem;
}

.lb-legal-body p {
    margin: 0 0 0.95rem;
}

.lb-legal-body ul,
.lb-legal-body ol {
    margin: 0 0 1.05rem;
    padding-left: 1.15rem;
}

.lb-legal-body li + li {
    margin-top: 0.4rem;
}

.lb-legal-body strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.lb-legal-body a {
    color: var(--primary-color, #6afaa6);
    text-decoration: none;
}

.lb-legal-body a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lb-legal-company {
    margin: 1.35rem 0 1.6rem;
    padding: 1.2rem 1.3rem;
    background: rgba(26, 34, 52, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.lb-legal-company h3 {
    margin-top: 0 !important;
    margin-bottom: 0.9rem !important;
    color: #fff !important;
}

.lb-legal-company dl {
    display: grid;
    grid-template-columns: minmax(6.5rem, 9.5rem) 1fr;
    gap: 0.55rem 1.1rem;
    margin: 0;
}

.lb-legal-company dt {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.86rem;
    padding-top: 0.1rem;
}

.lb-legal-company dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.94rem;
    line-height: 1.45;
    word-break: break-word;
}

.lb-fill-me {
    display: inline;
    padding: 0.08em 0.3em;
    border-radius: 4px;
    background: rgba(250, 204, 21, 0.12);
    border: 1px dashed rgba(250, 204, 21, 0.45);
    color: #fde68a;
    font-size: 0.9em;
    -webkit-text-fill-color: #fde68a;
}

.lb-legal-related {
    margin-top: 2.25rem;
    padding-top: 1.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.lb-legal-related .btn2 {
    min-height: 42px;
    height: 42px;
    padding: 0 1.15rem;
    font-size: 0.9rem;
}

@media (max-width: 575px) {
    .lb-legal-hero {
        padding: 1.75rem 0 1.5rem;
    }

    .lb-legal-layout {
        padding-top: 1.5rem;
    }

    .lb-legal-company dl {
        grid-template-columns: 1fr;
        gap: 0.1rem 0;
    }

    .lb-legal-company dt {
        margin-top: 0.55rem;
    }

    .lb-legal-company dt:first-child {
        margin-top: 0;
    }
}
