/* Cookies Policy Page Specific Styles - Mobile First Approach */

/* Base styles optimized for mobile first */
.main-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    max-width: 100%;
    background-color: white;
    min-height: auto;
    padding: 40px 10px 20px;
    box-sizing: border-box;
}

/* Cookies Container */
.cookies-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
    box-sizing: border-box;
}

/* Cookies Header */
.cookies-header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 10px;
}

.cookies-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #283848;
    margin-bottom: 10px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.cookies-divider {
    width: 50px;
    height: 3px;
    background-color: #d9a442;
    margin: 0 auto;
}

/* Cookies Content */
.cookies-content {
    padding: 10px 0;
}

.cookies-intro {
    margin-bottom: 20px;
    padding: 0 5px;
}

.cookies-intro p {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    margin-bottom: 10px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.cookies-section {
    margin-bottom: 20px;
    padding: 12px 12px 15px;
    background-color: white;
    border-left: 4px solid #d9a442;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.cookies-section:hover {
    border-left: 8px solid #d9a442;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.cookies-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #283848;
    margin-bottom: 10px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: color 0.3s ease;
}

.cookies-section:hover h2 {
    color: #d9a442;
}

.cookies-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #283848;
    margin-bottom: 8px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.cookies-section p {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    margin-bottom: 10px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.cookies-section ul {
    margin-left: 10px;
    padding-left: 10px;
    margin-bottom: 15px;
}

.cookies-section li {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    margin-bottom: 8px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Cookie Types Table - Container */
.cookies-section {
    width: 100%;
    overflow-x: hidden;
}

/* Table wrapper for mobile responsiveness */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    padding-bottom: 5px; /* Space for scrollbar */
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
}

/* Show scroll hint on mobile devices */
@media (max-width: 768px) {
    .table-wrapper {
        /* Add subtle animation to hint at scrolling */
        background-image: linear-gradient(to right, transparent 0%, rgba(217, 164, 66, 0.1) 100%);
        background-size: 200% 100%;
        animation: scrollHint 1.5s ease-in-out 1;
    }
    
    @keyframes scrollHint {
        0% { background-position: 0% 0; }
        100% { background-position: -100% 0; }
    }
}

/* Cookie Types Table */
.cookie-table {
    width: 100%;
    min-width: 600px; /* Ensure table shows all columns including Duration */
    border-collapse: collapse;
    margin-bottom: 0;
    background-color: white;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
    table-layout: fixed; /* Prevent column width from changing */
}

/* Set column widths to ensure Duration column is visible */
.cookie-table th:first-child {
    width: 20%;
}

.cookie-table th:nth-child(2) {
    width: 55%;
}

.cookie-table th:last-child {
    width: 25%;
}

.cookie-table:hover {
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.cookie-table th {
    background-color: #d9a442;
    color: white;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.cookie-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.cookie-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.cookie-table tr:hover {
    background-color: #f5f5f5;
}

/* Contact Information Section */
.contact-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-top: 25px;
    border-left: 3px solid #d9a442;
    transition: all 0.3s ease;
}

.contact-info:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-left: 8px solid #d9a442;
}

.contact-details {
    margin-top: 10px;
}

.contact-details p {
    margin-bottom: 8px;
    font-size: 13px;
    word-break: break-word;
}

.contact-details i {
    width: 16px;
    display: inline-block;
    margin-right: 8px;
    color: #d9a442;
}

/* Animation Styles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFocus {
    0% {
        filter: blur(12px);
        opacity: 0;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

@keyframes colorChange {
    0% {
        color: #283848;
    }
    50% {
        color: #d9a442;
    }
    100% {
        color: #283848;
    }
}

@keyframes borderPulse {
    0% {
        border-color: transparent;
    }
    50% {
        border-color: #d9a442;
    }
    100% {
        border-color: transparent;
    }
}

/* Apply animations to elements */
.animated-text {
    display: inline-block;
    position: relative;
    animation: textFocus 1s ease-out forwards;
}

.text-animation {
    position: relative;
}

.text-animation::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #d9a442;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease-out;
    animation: borderPulse 3s infinite;
}

.text-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.cookies-section:hover h2 {
    animation: colorChange 2s ease-in-out;
}

/* RESPONSIVE STYLES - MOBILE FIRST APPROACH */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .main-wrapper {
        padding: 50px 15px 25px;
    }
    
    .cookies-container {
        padding: 30px 15px;
    }
    
    .cookies-header h1 {
        font-size: 26px;
    }
    
    .cookies-divider {
        width: 60px;
    }
    
    .cookies-section {
        padding: 15px 15px 20px;
        margin-bottom: 25px;
    }
    
    .cookies-section h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .cookies-section h3 {
        font-size: 18px;
    }
    
    .cookies-section p, 
    .cookies-section li,
    .cookies-intro p {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .contact-details p {
        font-size: 14px;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .main-wrapper {
        padding: 60px 20px 30px;
    }
    
    .cookies-container {
        padding: 50px 20px;
    }
    
    .cookies-header {
        margin-bottom: 30px;
    }
    
    .cookies-header h1 {
        font-size: 30px;
        margin-bottom: 15px;
    }
    
    .cookies-divider {
        width: 70px;
        height: 4px;
    }
    
    .cookies-intro {
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .cookies-section {
        padding: 20px 20px 25px;
        margin-bottom: 30px;
    }
    
    .cookies-section h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .cookies-section h3 {
        font-size: 19px;
        margin-bottom: 12px;
    }
    
    .cookies-section p, 
    .cookies-section li,
    .cookies-intro p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .cookies-section ul {
        margin-left: 15px;
    }
    
    .contact-info {
        padding: 25px;
        margin-top: 35px;
    }
    
    .contact-details p {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    /* Allow tables to be full width on tablets+ */
    .cookie-table {
        display: table;
        white-space: normal;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 10px 15px;
        font-size: 15px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .main-wrapper {
        padding: 70px 20px 30px;
    }
    
    .cookies-container {
        padding: 70px 30px;
    }
    
    .cookies-header {
        margin-bottom: 40px;
    }
    
    .cookies-header h1 {
        font-size: 34px;
    }
    
    .cookies-divider {
        width: 80px;
    }
    
    .cookies-intro {
        padding: 0 15px;
        margin-bottom: 40px;
    }
    
    .cookies-section {
        padding: 25px 25px 30px;
        margin-bottom: 35px;
    }
    
    .cookies-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .cookies-section h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .cookies-section p, 
    .cookies-section li,
    .cookies-intro p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .cookies-section ul {
        margin-left: 20px;
        margin-bottom: 20px;
    }
    
    .contact-info {
        padding: 30px;
        margin-top: 40px;
    }
    
    .contact-details p {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 12px 15px;
        font-size: 16px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .cookies-container {
        padding: 80px 30px 60px;
    }
    
    .cookies-header h1 {
        font-size: 36px;
    }
}

/* End of Styles */

/* Additional small screen optimizations */
@media (max-width: 440px) {
    .cookie-table {
        font-size: 12px;
    }

    .cookie-table th, .cookie-table td {
        padding: 5px 6px;
    }

    .cookie-table th {
        white-space: normal;
    }
}

/* Additional Animation Classes for Mobile */
@media (max-width: 768px) {
    .animated-text {
        animation-duration: 0.8s;
    }

    .text-animation::after {
        animation-duration: 2s;
    }
}
