/* ==========================================================================
   Privacy Policy – fullscreen section (#privacy) + modal
   ========================================================================== */

/* --- Section: intro + "Read full privacy policy" button --- */
#privacy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#privacy .privacy-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#privacy .privacy-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f0e0d 0%, #1a1512 40%, #151210 100%);
    z-index: 0;
}

#privacy .privacy-content-block {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: min(640px, 90vw);
    padding: var(--space-4);
}

#privacy .privacy-title {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: #fff;
    margin: 0 0 clamp(1rem, 2vw, 1.5rem) 0;
    line-height: 1.2;
}

#privacy .privacy-title-gradient {
    background: linear-gradient(90deg, #F46C14, #ff8c5a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#privacy .privacy-intro {
    font-family: var(--body-font);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 clamp(1.5rem, 3vw, 2rem) 0;
}

#privacy .privacy-intro strong {
    font-weight: 600;
    color: #fff;
}

#privacy .privacy-cta-btn {
    display: inline-block;
    padding: clamp(0.75rem, 1.2vw, 1rem) clamp(1.75rem, 3vw, 2.5rem);
    font-family: var(--heading-font);
    font-weight: 400;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #F46C14, #e85a0a);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(244, 108, 20, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#privacy .privacy-cta-btn:hover {
    background: linear-gradient(135deg, #ff7d2e, #F46C14);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(244, 108, 20, 0.45);
}

#privacy .privacy-cta-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 108, 20, 0.4);
}

/* --- Modal overlay --- */
.privacy-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3);
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.privacy-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.privacy-modal-overlay.is-open .privacy-modal-box {
    transform: scale(1);
    opacity: 1;
}

.privacy-modal-box {
    width: 100%;
    max-width: min(720px, 96vw);
    height: 85vh;
    max-height: calc(100vh - 2 * var(--space-3));
    background: #11100E;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: scale(0.98);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.privacy-modal-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(1rem, 2vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.5rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-modal-title {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: #fff;
    margin: 0;
}

.privacy-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.privacy-modal-close:hover {
    color: #fff;
    background: rgba(244, 108, 20, 0.2);
    border-color: rgba(244, 108, 20, 0.5);
}

.privacy-modal-close:focus {
    outline: none;
    border-color: #F46C14;
    box-shadow: 0 0 0 2px rgba(244, 108, 20, 0.3);
}

.privacy-modal-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: clamp(1.25rem, 2.5vw, 1.5rem);
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar: orange thumb, dark track */
.privacy-modal-body::-webkit-scrollbar {
    width: 8px;
}
.privacy-modal-body::-webkit-scrollbar-track {
    background: #0f0e0d;
    border-radius: 4px;
}
.privacy-modal-body::-webkit-scrollbar-thumb {
    background: #F46C14;
    border-radius: 4px;
}
.privacy-modal-body::-webkit-scrollbar-thumb:hover {
    background: #ff7d2e;
}
.privacy-modal-body {
    scrollbar-color: #F46C14 #0f0e0d;
    scrollbar-width: thin;
}

.privacy-modal-intro {
    font-family: var(--body-font);
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1rem 0;
}

.privacy-modal-intro:not(:last-of-type) {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-modal-intro strong {
    font-weight: 600;
    color: #fff;
}

.privacy-section {
    margin-bottom: 1.5rem;
}

.privacy-section h3 {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    color: #F46C14;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.privacy-section p {
    font-family: var(--body-font);
    font-weight: 300;
    font-size: clamp(0.85rem, 1.05vw, 0.95rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.75rem 0;
}

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

@media (max-width: 768px) {
    #privacy .privacy-intro {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #privacy .privacy-cta-btn {
        min-height: 44px;
        width: 100%;
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .privacy-modal-overlay {
        padding: var(--space-2);
    }
    .privacy-modal-box {
        max-height: calc(100vh - 2 * var(--space-2));
    }
}
