/* ══════════════════════════════════════════════════════════
   VIONICA LIMITED — Shared Legal Page Styles
   Used by: privacy.html, terms.html, cookies.html
   ══════════════════════════════════════════════════════════ */

/* ── Override SPA-specific styles for static legal pages ── */
body {
    overflow-y: auto !important;
}

body.is-preload #footer {
    opacity: 1;
}

#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 !important;
    align-items: stretch !important;
}

#header {
    display: none !important;
}

#main {
    display: block !important;
    flex-grow: 1;
    align-items: stretch !important;
    justify-content: flex-start !important;
    max-width: 100% !important;
    z-index: 3;
    position: relative;
}

#main article {
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2.5rem 2.5rem !important;
    background-color: rgba(27, 31, 34, 0.85);
    border-radius: 4px;
    position: relative;
}

#footer {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: auto;
}

/* ── Close (X) button — matches main page modal style ── */
.legal-close {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 4rem;
    height: 4rem;
    cursor: pointer;
    text-indent: 4rem;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: none !important;
    z-index: 10;
}

.legal-close:before {
    transition: background-color 0.2s ease-in-out;
    content: '';
    display: block;
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 100%;
    background-position: center;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20px' height='20px' viewBox='0 0 20 20' zoomAndPan='disable'%3E%3Cstyle%3Eline %7B stroke: %23ffffff%3B stroke-width: 1%3B %7D%3C/style%3E%3Cline x1='2' y1='2' x2='18' y2='18' /%3E%3Cline x1='18' y1='2' x2='2' y2='18' /%3E%3C/svg%3E");
    background-size: 20px 20px;
    background-repeat: no-repeat;
}

.legal-close:hover:before {
    background-color: rgba(255, 255, 255, 0.075);
}

.legal-close:active:before {
    background-color: rgba(255, 255, 255, 0.175);
}

/* ── Legal page typography ── */
.legal-content h2.major {
    margin-bottom: 0.5rem;
}

.legal-content .legal-date {
    opacity: 0.6;
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.legal-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
}

.legal-content ul li {
    margin-bottom: 0.4rem;
}

/* ── Cookie table (cookies.html) ── */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.cookie-table th,
.cookie-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
}

.cookie-table th {
    color: #ffffff;
    font-weight: 600;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.75rem;
}

/* ── Responsive ── */
@media screen and (max-width: 736px) {
    #main article {
        padding: 2rem 1.5rem 1.5rem !important;
    }

    .legal-close:before {
        top: 0.875rem;
        left: 0.875rem;
        width: 2.25rem;
        height: 2.25rem;
        background-size: 14px 14px;
    }
}

@media screen and (max-width: 480px) {
    #main article {
        padding: 1.5rem 1rem 1rem !important;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}