/* ============================================================
   CROSSOVER X — legal-information.css
   Final Fantasy Style Legal Page
   ============================================================ */

/* ============================================================
   1. PAGE ROOT — Hintergrundbild
   ============================================================ */
.legal-page-root {
    position: relative;
    min-height: 100vh;
    background-color: #000;
    /* Hintergrundbild — gleiche URL wie im Original */
    background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/BG_Finalfantasy.webp');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    overflow: hidden;
}

/* Dunkles Overlay über dem BG für Lesbarkeit */
.legal-page-root::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 20, 0.65);
    z-index: 0;
}

/* ============================================================
   2. CONTENT WRAPPER
   Desktop: Links = Content, Rechts = Schwert (nebeneinander)
   Mobile:  Übereinander gestapelt
   ============================================================ */
.legal-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 100vh;
    padding: 60px 40px 80px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================================
   3. LEFT SIDE
   ============================================================ */
.legal-side-left {
    flex: 0 0 auto;
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 10;
}

/* ---- Title Frame ---- */
.legal-title-frame {
    background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/finalfantasy_magicframe.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 30px 50px;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.legal-title-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(16px, 2vw, 22px);
    color: #fff;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---- Menu Container ---- */
.legal-menu-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.legal-menu-container.is-hidden {
    opacity: 0;
    transform: translateX(-30px);
    pointer-events: none;
}

/* ---- Menu Item ---- */
.legal-menu-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 30px 16px 20px;
    cursor: pointer;
    min-height: 70px;
    background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/glassbox_frame_bg_01.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                filter 0.35s ease,
                background-image 0.2s ease;
}

.legal-menu-item:hover {
    background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/glassbox_frame_bg_02.png');
    transform: translateX(15px);
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 242, 255, 0.5));
}

.legal-menu-item:hover .legal-menu-orb {
    transform: scale(1.15) rotate(20deg);
}

/* Orb Icon — größer und mehr Präsenz */
.legal-menu-orb {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.6s ease-in-out;
}

/* Menu Text */
.legal-menu-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ============================================================
   4. INFO BOX (erscheint nach Klick, ersetzt Menu)
   ============================================================ */
.legal-info-box {
    display: none;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    /* Glasbox Hintergrund */
    background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/textbox_glass_png.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 50px 60px;
    min-height: 320px;
}

.legal-info-box.is-active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Info Title */
.legal-info-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(14px, 1.6vw, 20px);
    color: #00f2ff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Info Description */
.legal-info-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 1.2vw, 16px);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* ---- Action Button ---- */
.legal-final-button {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    width: fit-content;
    margin-top: 10px;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.legal-final-button:hover {
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.8));
    transform: translateX(6px);
}

.weiterleitung {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.legal-button-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(13px, 1.2vw, 16px);
    color: #00f2ff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---- Back Button ---- */
.legal-back-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    cursor: pointer;
    padding: 0;
    text-align: left;
    width: fit-content;
    transition: color 0.2s ease;
}

.legal-back-btn:hover {
    color: #fff;
}

/* ============================================================
   5. SCHWERT — Desktop: rechts neben dem Content
   ============================================================ */
.legal-sword-container {
    flex: 0 0 auto;
    width: clamp(340px, 32vw, 620px);
    align-self: flex-end; /* Unten ausrichten — Schwert steht auf Boden */
    position: relative;
    pointer-events: none;
    filter: drop-shadow(0 0 30px rgba(0, 242, 255, 0.15));
    /* Negativer oberer Margin kompensiert transparenten PNG-Rand */
    margin-top: -60px;
}

/* Aspect-Ratio Box — Schwert PNG Verhältnis ~1:1.4 (Bild hat viel Boden-Szene) */
.legal-sword-container::after {
    content: '';
    display: block;
    padding-top: 140%;
}

.legal-sword-base,
.legal-sword-glow {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-repeat: no-repeat;
    /* Center center damit transparent Rand gleichmäßig wegfällt */
    background-position: center center;
}

.legal-sword-base {
    background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/BusterSword_Masterfile_03.png');
}

.legal-sword-glow {
    background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/BusterSword_Masterfile_glow_03png.png');
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    /* Glow pulsiert leicht */
    animation: swordPulse 3s ease-in-out infinite;
}

@keyframes swordPulse {
    0%, 100% { opacity: 0.1; }
    50%       { opacity: 0.4; }
}

/* Hover auf dem Sword-Container: Glow aufleuchten */
.legal-sword-container:hover .legal-sword-glow {
    opacity: 1;
    animation: none;
}

/* Leuchtlinie links vom Schwert (aus Screenshot gut sichtbar) */
.legal-sword-container::before {
    content: '';
    position: absolute;
    left: -4px;   /* Direkt am linken Rand der Container-Box */
    top: 5%;
    height: 75%;
    width: 3px;
    background: linear-gradient(to bottom,
        transparent 0%,
        #00f2ff 20%,
        #00f2ff 80%,
        transparent 100%
    );
    box-shadow: 0 0 16px 2px #00f2ff, 0 0 40px 4px rgba(0, 242, 255, 0.3);
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}

/* ============================================================
   6. RESPONSIVE
   ============================================================ */

/* Mittelgroße Bildschirme: Schwert etwas kleiner */
@media (max-width: 1220px) and (min-width: 993px) {
    .legal-sword-container {
        width: clamp(260px, 25vw, 480px);
    }

    .legal-side-left {
        max-width: 520px;
    }
}

/* ---- Tablet & Mobile: übereinander gestapelt ---- */
@media (max-width: 992px) {
    .legal-content-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px 60px;
        gap: 30px;
    }

    .legal-side-left {
        max-width: 100%;
        width: 100%;
    }

    /* Schwert: volle Breite, unter dem Content */
    .legal-sword-container {
        width: min(90vw, 480px);
        order: 10;
        pointer-events: auto;
        align-self: center;
        margin-top: 0;
    }

    .legal-sword-container::before {
        display: none;
    }

    .legal-info-box {
        padding: 35px 30px;
    }
}

/* ---- Mobile Portrait ---- */
@media (max-width: 600px) {
    .legal-title-frame {
        /* Wenn Bild fehlt, trotzdem schön */
        background-image: none;
        background-color: rgba(0, 20, 60, 0.7);
        border: 1px solid rgba(0, 242, 255, 0.3);
        border-radius: 4px;
        padding: 20px 24px;
        min-height: auto;
    }

    .legal-info-box {
        background-image: none;
        background-color: rgba(0, 20, 60, 0.8);
        border: 1px solid rgba(0, 242, 255, 0.4);
        border-radius: 4px;
        padding: 25px 20px;
    }

    .legal-menu-item {
        background-image: none;
        background-color: rgba(0, 20, 60, 0.7);
        border: 1px solid rgba(0, 242, 255, 0.2);
        border-radius: 4px;
    }

    .legal-sword-container {
        width: 90vw;
    }
}