/* EzReplay Pro — Legal Page */
/* Made by Jenny Reinecke @uplift-beyond.de 2025 */

body.legal {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans), sans-serif;
    overflow-x: hidden;
    overflow-y: scroll;
    min-height: 100vh;
    height: fit-content;
    --btn-bg: linear-gradient(135deg, rgba(112, 63, 161, 0.92), rgba(82, 102, 255, 0.95));
}

/* ─── Layout ────────────────────────────────────────── */

.legalWrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 50px 80px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    align-items: start;
}

/* ─── Sidebar ───────────────────────────────────────── */

.legalSidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legalSidebarLabel {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 10px 10px;
}

.legalSidebarBtn {
    all: unset;
    cursor: pointer;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans), sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: background-color var(--ease-fast), color var(--ease-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.legalSidebarBtn:hover {
    background-color: var(--color-secondary);
    color: rgba(255, 255, 255, 0.85);
}

.legalSidebarBtn.active {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

.legalSidebarBtn.active .sidebarDot {
    background-color: var(--color-accent);
}

.sidebarDot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    transition: background-color var(--ease-fast);
}

/* ─── Content ───────────────────────────────────────── */

.legalContent {
    min-width: 0;
}

.legalPanel {
    display: none;
}

.legalPanel.active {
    display: block !important;
    animation: panelIn 0.25s ease forwards;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.legalHeader {
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.legalTag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    display: block;
    margin-bottom: 10px;
}

.legalTitle {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    line-height: 1.2;
}

.legalMeta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ─── Body content ──────────────────────────────────── */

.legalBody {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.legalSection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legalSection h3 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.legalSection p,
.legalSection ul {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
}

.legalSection ul {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.legalSection ul li::before {
    content: '—';
    margin-right: 10px;
    color: var(--color-accent);
    opacity: 0.6;
}

.legalSection a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--ease-fast);
}

.legalSection a:hover { color: #fff; }

.legalSection .inlineCode {
    font-family: var(--font-mono), monospace;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.07);
    padding: 1px 6px;
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.7);
}

.legalDivider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    margin: 0;
}

.legalAddress {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
}

/* ─── Footer ────────────────────────────────────────── */

.legalFooter {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    max-width: 1100px;
    margin: 0 auto;
}

.legalFooterFull {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.footerLogoSmall {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: opacity var(--ease-fast);
    text-decoration: none;
    color: var(--color-text);
}

.footerLogoSmall:hover { opacity: 0.8; }

.footerLogoSmall img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.footerLinksSmall {
    display: flex;
    gap: 20px;
}

.footerLinksSmall a {
    all: unset;
    cursor: pointer;
    font-size: 0.82rem;
    opacity: 0.35;
    transition: opacity var(--ease-fast);
}

.footerLinksSmall a:hover { opacity: 0.8; }

/* ─── Responsive ────────────────────────────────────── */

@media (max-width: 800px) {
    .legalWrapper {
        grid-template-columns: 1fr;
        padding: 90px 24px 60px;
        gap: 32px;
    }

    .legalSidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .legalSidebarLabel { display: none; }

    .legalSidebarBtn {
        font-size: 0.82rem;
        padding: 7px 12px;
    }

    .legalFooterFull {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 24px;
    }
}