/* Links zu Impressum, Datenschutz und Cookies (assets/js/legal.js).
   Ecke unten rechts: auf Höhe des Players (components.css .player-bar: bottom 16px, 72px hoch, max. 700px breit, mittig)
   und nur, wenn rechts neben ihm genug Platz ist; nichts davon steht je unter dem Player. */

.legal-corner { display: none; }

@media (min-width: 1180px) {
    .legal-corner {
        position: fixed;
        right: 24px;
        bottom: 16px;
        height: 72px;
        width: 220px;       /* (1180 - 700) / 2 = 240: bleibt mind. 20px vom Player weg */
        z-index: 150;       /* unter Player (200), Fenstern und Cookie-Hinweis */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        gap: 6px;
        pointer-events: none;
    }
}
/* Zwei Zeilen: „Impressum · Datenschutz · Cookies“ und „© Jahr · Cookie-Einstellungen“ */
.legal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 2px 8px;
}
.legal-link, .legal-year {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.04em;
    line-height: 1.4;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.legal-link { pointer-events: auto; }
.legal-link:hover, .legal-link:focus-visible { color: var(--text); }
.legal-dot {
    color: var(--text-dim);
    opacity: 0.5;
    font-size: 11px;
    line-height: 1.4;
}

/* Zahnrad-Menü: Abschnitt „Rechtliches“ unter Sprache und Theme */
.legal-menu {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
}
.legal-menu-heading {
    padding: 8px 12px 4px;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.legal-menu-links { display: flex; flex-direction: column; }
.legal-menu-link {
    padding: 7px 12px;
    border-radius: var(--r-inner);
    color: var(--tile-fg-hover);
    text-decoration: none;
    font-size: 13px;
}
.legal-menu-link:hover, .legal-menu-link:focus-visible { background: var(--tile-hover); color: var(--tile-fg-active); }

/* Suchfenster: nur auf dem Handy, wo es auch Sprache und Theme trägt */
.legal-search { display: none; }
@media (max-width: 768px) {
    .legal-search {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        margin-top: 14px;
        padding-top: 8px;
        border-top: 1px solid var(--line);
    }
    .legal-search .legal-row { justify-content: center; }
    .legal-search .legal-link { padding: 8px 0; }
    .legal-search .legal-link, .legal-search .legal-year, .legal-search .legal-dot { font-size: 12px; }
}
