/* ==========================================================================
   COOKIES POLICY PAGE SPECIFIC STYLES
   ========================================================================== */

/* ปรับฟิลเตอร์สีของแบนเนอร์ให้เป็นธีมกฎหมาย/ความเป็นส่วนตัว */
.cookie-banner-bg {
    background: linear-gradient(135deg, rgba(12,127,234,0.7), rgba(12,127,234,0.5)), 
                url('../images/bg-policy.jpg') no-repeat center center/cover;
    padding: 110px 0 70px 0;
    text-align: center;
}

.cookie-banner-bg h1 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 500;
}

.cookie-banner-bg p {
    color: #ffffff;;
    font-size: 18px;
    font-weight: 300;
    margin-top: 5px;
}

/* ส่วนของ Card เนื้อหา */
.policy-container-wrapper {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.policy-card {
    background: #ffffff;
    padding: 50px;
    border-radius: var(--border-radius-custom);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.policy-intro {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
    font-weight: 300;
    background-color: rgba(12, 127, 234, 0.05);
    padding: 20px 25px;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    margin-bottom: 40px;
}

.policy-block {
    margin-bottom: 45px;
}

.policy-block:last-child {
    margin-bottom: 0;
}

.policy-section-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 10px;
}

.policy-section-title i {
    color: var(--secondary-color);
    font-size: 20px;
}

.policy-block p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 15px;
}

.policy-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.policy-block a:hover {
    color: var(--secondary-color);
}

/* ลิสต์รายการแจกแจงประเภท */
.policy-list {
    margin: 20px 0;
    padding-left: 10px;
}

.policy-list li {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.policy-list li::before {
    content: "\f111";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 6px;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* ส่วนบล็อกแยกย่อยของคุกกี้ 4 ประเภทหลัก */
.cookie-type-item {
    background: #fdfdfd;
    border: 1px solid #f0f4f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cookie-type-item:hover {
    border-color: rgba(12, 127, 234, 0.3);
    box-shadow: 0 5px 15px rgba(12, 127, 234, 0.05);
}

.cookie-type-item h3 {
    font-size: 16px;
    font-weight: 500;
    color: #222222;
    margin-bottom: 8px;
}

.cookie-type-item p {
    margin-bottom: 0;
    font-size: 14px;
}

/* ส่วนของ Grid ลิงก์เบราว์เซอร์ */
.browser-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.browser-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark) !important;
    text-decoration: none !important;
    font-weight: 300;
    transition: all 0.3s ease;
    text-align: center;
}

.browser-btn i {
    font-size: 16px;
    color: var(--primary-color);
}

.browser-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 127, 234, 0.2);
}

.browser-btn:hover i {
    color: #ffffff;
}

/* กล่องข้อความแจ้งเตือนสีส้ม */
.policy-notice {
    background: rgba(223, 122, 48, 0.06);
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    border-radius: 4px;
    margin-top: 25px;
}

.policy-notice p {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--text-dark);
}


/* เพิ่มเติมใน css/policy.css เพื่อรองรับหน้า Terms */
.cookie-type-item h3 i {
    color: var(--secondary-color);
    margin-right: 5px;
}
.policy-block p strong {
    font-weight: 500;
    color: var(--primary-color);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
    .browser-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .policy-card {
        padding: 30px 20px;
    }
    .browser-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cookie-banner-bg h1 {
        font-size: 28px;
    }
    .policy-section-title {
        font-size: 18px;
    }
    .browser-links-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .browser-btn {
        padding: 10px;
    }
}