/* =========================================================
   legal.css
   ovniTEK Solutions
   Shared by:
   - privacy.html
   - terms.html
   ================================================= */


/* ---------------------------------------------------------
   Legal Header
   --------------------------------------------------------- */

.legal-header {
    width: 100%;
    padding: 20px 0 60px;

    text-align: center;

    border-bottom: 1px solid rgba(165, 255, 238, 0.15);
}

.legal-header h1 {
    margin: 0;

    color: #A5FFEE;

    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.2;
}

.legal-updated {
    margin: 10px 0 0;

    color: #888;

    font-size: 14px;
}


/* ---------------------------------------------------------
   Legal Content
   --------------------------------------------------------- */

.legal-content {
    padding: 50px 0 0;
}


/* ---------------------------------------------------------
   Legal Sections
   --------------------------------------------------------- */

.legal-section {
    margin-bottom: 16px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(165, 255, 238, 0.18);
    border-radius: 8px;
}

.legal-section h2 {
    margin-top: 0;
    margin-bottom: 20px;

    color: #A5FFEE;

    font-size: 25px;
    line-height: 1.3;
}

.legal-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 10px 12px;

    cursor: pointer;
    list-style: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.legal-section > summary::-webkit-details-marker {
    display: none;
}

.legal-section > summary:hover {
    background: rgba(165, 255, 238, 0.05);
}

.legal-section > summary:focus-visible {
    outline: 2px solid #A5FFEE;
    outline-offset: -3px;
}

.legal-section > summary h2 {
    margin: 0;
}

.legal-section > summary::after {
    content: "+";

    display: grid;
    place-items: center;
    flex: 0 0 auto;

    width: 30px;
    height: 30px;

    color: #A5FFEE;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
}

.legal-section[open] > summary {
    background: rgba(165, 255, 238, 0.045);
    border-bottom: 1px solid rgba(165, 255, 238, 0.14);
}

.legal-section[open] > summary::after {
    content: "×";
}

.legal-section-content {
    padding: 22px;
}

.legal-section h3 {
    margin-top: 30px;
    margin-bottom: 10px;

    color: white;

    font-size: 19px;
    line-height: 1.4;
}

.legal-section p,
.legal-section li {
    color: #d0d0d0;
    font-size: 16px;
}

.legal-section p {
    margin-top: 0;
    margin-bottom: 18px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    margin-top: 10px;
    margin-bottom: 20px;

    padding-left: 25px;
}

.legal-section li {
    margin-bottom: 8px;
}


/* ---------------------------------------------------------
   Back to Top
   --------------------------------------------------------- */

.legal-back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 900;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    background-color: rgba(5, 5, 5, 0.92);
    border: 1px solid rgba(165, 255, 238, 0.45);
    border-radius: 24px;

    color: #A5FFEE;

    backdrop-filter: blur(8px);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.legal-back-to-top:hover {
    background-color: rgba(165, 255, 238, 0.08);
    border-color: #A5FFEE;
    color: white;
    transform: translateY(-2px);
}

.legal-back-to-top:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

.legal-back-to-top svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.legal-scroll-enhanced .legal-back-to-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.legal-scroll-enhanced .legal-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.legal-scroll-enhanced .legal-back-to-top.is-visible:hover {
    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   Legal Links
   --------------------------------------------------------- */

.legal-section a {
    color: #A5FFEE;
    text-decoration: none;
}

.legal-section a:hover {
    color: white;
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media screen and (max-width: 600px) {

    .legal-header {
        padding: 10px 0 40px;
    }

    .legal-header h1 {
        font-size: 32px;
    }

    .legal-content {
        width: min(calc(100% - 30px), 1200px);
        padding: 35px 0 0;
    }

    .legal-section {
        margin-bottom: 14px;
    }

    .legal-section > summary {
        padding: 10px 12px;
    }

    .legal-section-content {
        padding: 18px;
    }

    .legal-section h2 {
        font-size: 22px;
    }

    .legal-section h3 {
        font-size: 18px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 15px;
    }

    .legal-section ul {
        padding-left: 22px;
    }

    .legal-back-to-top {
        right: 18px;
        bottom: 18px;

        width: 44px;
        height: 44px;
    }
}
