/* ============================================================
   SPIRO PILATES — Modal (Polityka / Regulamin)
   Dodaj do: assets/css/base.css lub osobnego pliku
   ============================================================ */

/* ── Linki w dolnym pasku ────────────────────────────────────── */
.wix-footer__legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wix-footer__legal-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
    font-family: inherit;
}

.wix-footer__legal-btn:hover {
    opacity: 1;
}

.wix-footer__legal-sep {
    opacity: 0.4;
    font-size: 12px;
}

/* ── Modal — nakładka + box ──────────────────────────────────── */
.spiro-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.spiro-modal[hidden] {
    display: none;
}

.spiro-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 42, 34, 0.6);
    backdrop-filter: blur(3px);
}

.spiro-modal__box {
    position: relative;
    background: var(--bg, #f7f3ea);
    color: var(--text, #10221b);
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
    animation: modalIn 0.3s cubic-bezier(0.22,1,0.36,1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Przycisk zamknięcia ─────────────────────────────────────── */
.spiro-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text, #10221b);
    opacity: 0.5;
    transition: opacity 0.2s ease;
    z-index: 2;
    padding: 4px 8px;
    font-family: inherit;
}

.spiro-modal__close:hover {
    opacity: 1;
}

/* ── Treść ───────────────────────────────────────────────────── */
.spiro-modal__body {
    overflow-y: auto;
    padding: 48px 40px 40px;
    scroll-behavior: smooth;
}

.spiro-modal__body h2 {
    font-family: var(--font-title, serif);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0 0 28px;
    color: var(--text, #10221b);
}

.spiro-modal__body h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 28px 0 10px;
    color: var(--cta, #0f2a22);
}

.spiro-modal__body p,
.spiro-modal__body li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text, #10221b);
    opacity: 0.85;
    margin: 0 0 8px;
}

.spiro-modal__body ol,
.spiro-modal__body ul {
    padding-left: 20px;
    margin: 0 0 12px;
}

.spiro-modal__body a {
    color: var(--cta, #0f2a22);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
.spiro-modal__body::-webkit-scrollbar {
    width: 4px;
}
.spiro-modal__body::-webkit-scrollbar-track {
    background: transparent;
}
.spiro-modal__body::-webkit-scrollbar-thumb {
    background: var(--cta, #0f2a22);
    border-radius: 4px;
    opacity: 0.3;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .spiro-modal__body {
        padding: 48px 24px 32px;
    }
    .spiro-modal__box {
        max-height: 92vh;
        border-radius: 8px;
    }
}