/* Privacy & Cookie Policy page styles */

.page-header {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--deep-charcoal);
    background-image: linear-gradient(to bottom, #232323, #1d1d1d);
}

/* Large Pink Blob - Top Left */
.page-header::after {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 350px;
    height: 350px;
    background-color: var(--bubblegum-pink);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.9;
    filter: blur(40px);
    z-index: 0;
    animation: float-blob 20s ease-in-out infinite alternate;
}

/* Large Blue Blob - Bottom Right */
.page-header::before {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background-color: var(--azure-blue);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    opacity: 0.9;
    filter: blur(40px);
    z-index: 0;
    animation: float-blob 25s ease-in-out infinite alternate-reverse;
}

/* Yellow Blob - Center */
.page-header .container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 230px;
    height: 230px;
    background-color: var(--golden-yellow);
    border-radius: 40% 60% 60% 40% / 40% 50% 50% 60%;
    opacity: 0.85;
    filter: blur(35px);
    animation: pulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes float-blob {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(30px, 30px) rotate(15deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.page-title {
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-description {
    color: var(--light-gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.policy-section {
    padding: 80px 0;
    background-color: var(--white);
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--deep-charcoal);
    padding-top: 60px;
}

.policy-intro:first-child {
    padding-top: 20px;
}

.last-updated {
    font-style: italic;
    color: var(--medium-gray);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.policy-introduction {
    margin-bottom: 40px;
}

.policy-section-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}

.policy-section-item:last-child {
    border-bottom: none;
}

.policy-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--deep-charcoal);
    margin-bottom: 20px;
    margin-top: 40px;
    position: relative;
    padding-bottom: 10px;
}

.policy-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--golden-yellow);
}

.policy-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Nested list styling for hierarchical numbering */
.policy-content ol {
    list-style-type: none;
    padding-left: 20px;
    counter-reset: subitem;
}

.policy-content ol > li {
    counter-increment: subitem;
    margin-bottom: 10px;
    position: relative;
}

.policy-content ol > li::before {
    font-weight: 400;
    color: var(--dark-gray);
    margin-right: 8px;
    display: inline-block;
}

/* Use data-section attribute to display hierarchical numbering */
.policy-content ol[data-section="1.1"] > li::before { content: "1.1." counter(subitem) " "; }
.policy-content ol[data-section="1.2"] > li::before { content: "1.2." counter(subitem) " "; }
.policy-content ol[data-section="1.3"] > li::before { content: "1.3." counter(subitem) " "; }
.policy-content ol[data-section="2.1"] > li::before { content: "2.1." counter(subitem) " "; }
.policy-content ol[data-section="2.2"] > li::before { content: "2.2." counter(subitem) " "; }
.policy-content ol[data-section="2.3"] > li::before { content: "2.3." counter(subitem) " "; }
.policy-content ol[data-section="3.1"] > li::before { content: "3.1." counter(subitem) " "; }
.policy-content ol[data-section="3.2"] > li::before { content: "3.2." counter(subitem) " "; }
.policy-content ol[data-section="4.1"] > li::before { content: "4.1." counter(subitem) " "; }
.policy-content ol[data-section="4.2"] > li::before { content: "4.2." counter(subitem) " "; }
.policy-content ol[data-section="4.3"] > li::before { content: "4.3." counter(subitem) " "; }
.policy-content ol[data-section="5.1"] > li::before { content: "5.1." counter(subitem) " "; }
.policy-content ol[data-section="5.2"] > li::before { content: "5.2." counter(subitem) " "; }
.policy-content ol[data-section="5.3"] > li::before { content: "5.3." counter(subitem) " "; }
.policy-content ol[data-section="6.1"] > li::before { content: "6.1." counter(subitem) " "; }
.policy-content ol[data-section="6.2"] > li::before { content: "6.2." counter(subitem) " "; }
.policy-content ol[data-section="7.1"] > li::before { content: "7.1." counter(subitem) " "; }
.policy-content ol[data-section="7.2"] > li::before { content: "7.2." counter(subitem) " "; }
.policy-content ol[data-section="8.1"] > li::before { content: "8.1." counter(subitem) " "; }
.policy-content ol[data-section="8.2"] > li::before { content: "8.2." counter(subitem) " "; }
.policy-content ol[data-section="9.1"] > li::before { content: "9.1." counter(subitem) " "; }
.policy-content ol[data-section="9.2"] > li::before { content: "9.2." counter(subitem) " "; }
.policy-content ol[data-section="9.3"] > li::before { content: "9.3." counter(subitem) " "; }
.policy-content ol[data-section="9.4"] > li::before { content: "9.4." counter(subitem) " "; }
.policy-content ol[data-section="11.1"] > li::before { content: "11.1." counter(subitem) " "; }
.policy-content ol[data-section="11.2"] > li::before { content: "11.2." counter(subitem) " "; }
.policy-content ol[data-section="18"] > li::before { content: "18." counter(subitem) " "; }

.policy-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    margin: 25px 0 15px;
}

.policy-content p {
    margin-bottom: 15px;
}

.policy-content ul, 
.policy-content ol {
    margin-bottom: 20px;
    margin-left: 20px;
}

.policy-content li {
    margin-bottom: 10px;
}

.policy-content a {
    color: var(--azure-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-content a:hover {
    color: var(--bubblegum-pink);
    text-decoration: underline;
}

.contact-list {
    list-style: none;
    margin-left: 0 !important;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookie-table th {
    background-color: var(--light-gray);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--medium-gray);
}

.cookie-table td {
    padding: 10px 15px;
    border: 1px solid var(--medium-gray);
}

.cookie-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--deep-charcoal);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    display: none;
}

.cookie-banner.active {
    display: block;
    transform: translateY(0);
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--light-gray);
}

.cookie-text {
    flex: 1;
    margin-right: 20px;
}

.cookie-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.cookie-text a {
    color: var(--golden-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: var(--bubblegum-pink);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn-accept {
    background-color: var(--golden-yellow);
    color: var(--deep-charcoal);
}

.cookie-btn-accept:hover {
    background-color: var(--bubblegum-pink);
    color: var(--white);
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.cookie-btn-settings:hover {
    background-color: var(--white);
    color: var(--deep-charcoal);
    transform: translateY(-2px);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background-color: var(--white);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.cookie-modal.active .cookie-modal-content {
    transform: translateY(0);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cookie-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-charcoal);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--deep-charcoal);
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: var(--bubblegum-pink);
}

.cookie-preferences {
    margin-bottom: 20px;
}

.cookie-category {
    border-bottom: 1px solid var(--light-gray);
    padding: 15px 0;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-category-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.cookie-category-description {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--medium-gray);
    transition: .4s;
    border-radius: 34px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--golden-yellow);
}

input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:checked + .cookie-slider:before {
    transform: translateX(20px);
}

.cookie-modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.cookie-modal-btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-save {
    background-color: var(--golden-yellow);
    color: var(--deep-charcoal);
}

.cookie-save:hover {
    background-color: var(--bubblegum-pink);
    color: var(--white);
    transform: translateY(-2px);
}

.cookie-decline {
    background-color: transparent;
    color: var(--deep-charcoal);
    border: 1px solid var(--deep-charcoal);
}

.cookie-decline:hover {
    background-color: var(--deep-charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 767px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .policy-content {
        font-size: 1rem;
    }
    
    .policy-content h2 {
        font-size: 1.6rem;
    }
    
    .policy-content h3 {
        font-size: 1.3rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-text {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}