/* footer.css — Trust & Compliance popup, themed to match style.css */

.trust-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 6, 2, 0.82);
    backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.trust-overlay.active {
    opacity: 1;
    visibility: visible;
}

.trust-popup {
    position: relative;
    width: min(640px, 90vw);
    max-height: 84vh;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--wood-deep) 0%, var(--wood-deepest) 100%);
    border: 1px solid rgba(200, 146, 42, 0.25);
    border-radius: 4px;
    padding: 50px 40px 40px;
    transform: translateY(24px);
    transition: transform 0.35s ease;
}

.trust-overlay.active .trust-popup {
    transform: translateY(0);
}

.trust-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(200, 146, 42, 0.35);
    background: transparent;
    color: var(--amber-light);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.trust-close:hover {
    background: rgba(200, 146, 42, 0.12);
    border-color: var(--amber-light);
}

.trust-popup-header {
    text-align: center;
    margin-bottom: 36px;
}

.trust-popup-tag {
    font-family: var(--font-mincho);
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--amber);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.trust-popup-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    color: #e8d5b0;
    letter-spacing: 2px;
    margin: 0 0 16px;
}

.trust-popup-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.trust-popup-divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--amber), transparent);
}

.trust-popup-divider-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--amber);
}

.trust-popup-body {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 18px;
    max-height: calc((150px + 12px + 18px) * 3);
    overflow-y: auto;
}

.trust-doc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: calc((100% - 36px) / 3);
    min-width: 140px;
}

.trust-doc-name {
    font-family: var(--font-mincho);
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(232, 213, 176, 0.85);
    text-transform: uppercase;
    text-align: center;
}

.trust-doc-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(200, 146, 42, 0.2);
    cursor: zoom-in;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.trust-doc-img:hover {
    transform: scale(1.02);
    border-color: rgba(200, 146, 42, 0.5);
}

.trust-empty {
    text-align: center;
    padding: 30px 0;
    color: rgba(200, 146, 42, 0.3);
    font-family: var(--font-mincho);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ===== ZOOM VIEW ===== */
.trust-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 1, 0.94);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.trust-zoom-overlay.active {
    opacity: 1;
    visibility: visible;
}

.trust-zoom-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border: 1px solid rgba(200, 146, 42, 0.25);
    border-radius: 2px;
}

#trustZoomPdf {
    width: 88vw;
    height: 88vh;
    border: 1px solid rgba(200, 146, 42, 0.25);
    border-radius: 2px;
    background: #fff;
}

.trust-doc-pdf-canvas {
    background: #fff;
}

.trust-pdf-viewer {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

#trustPdfCanvas {
    max-width: 85vw;
    max-height: 85vh;
    border: 1px solid rgba(200, 146, 42, 0.25);
    border-radius: 2px;
    background: #fff;
}

.trust-pdf-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(200, 146, 42, 0.35);
    background: rgba(10, 6, 2, 0.7);
    color: var(--amber-light, #d4af37);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.trust-pdf-nav:hover {
    background: rgba(200, 146, 42, 0.18);
    border-color: var(--amber-light, #d4af37);
}

.trust-pdf-nav.prev { left: -64px; }
.trust-pdf-nav.next { right: -64px; }

.trust-pdf-pagenum {
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mincho);
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(232, 213, 176, 0.75);
}

@media (max-width: 768px) {
    .trust-pdf-nav.prev { left: 8px; }
    .trust-pdf-nav.next { right: 8px; }
}

.trust-zoom-close {
    position: absolute;
    top: 30px;
    right: 36px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(200, 146, 42, 0.35);
    background: transparent;
    color: var(--amber-light);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.trust-zoom-close:hover {
    background: rgba(200, 146, 42, 0.12);
    border-color: var(--amber-light);
}

@media (max-width: 600px) {
    .trust-popup { padding: 40px 22px 30px; }
    .trust-popup-title { font-size: 24px; }
    .trust-doc { width: 100%; max-width: 260px; }
}