/* Policy Pages Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4af37;
    --secondary-color: #f5f5dc;
    --text-color: #2c3e50;
    --light-bg: #faf9f6;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d3 50%, #f0e8d8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b8941f 100%);
    color: var(--white);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.policy-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.close-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.policy-content {
    padding: 40px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.policy-section {
    margin-bottom: 35px;
}

.policy-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e0d3;
}

.policy-section h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.policy-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.policy-section ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.policy-section li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #555;
}

.policy-section strong {
    color: var(--text-color);
    font-weight: 600;
}

.cookie-table {
    overflow-x: auto;
    margin: 20px 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.cookie-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table tr:hover {
    background: #f0f0f0;
}

.policy-footer {
    padding: 25px 40px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.back-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.back-btn:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.back-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .policy-container {
        border-radius: 10px;
    }

    .policy-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .policy-title {
        font-size: 1.8rem;
    }

    .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .policy-content {
        padding: 25px 20px;
    }

    .policy-section h2 {
        font-size: 1.5rem;
    }

    .policy-section h3 {
        font-size: 1.2rem;
    }

    .cookie-table {
        font-size: 0.9rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 10px;
    }

    .policy-footer {
        padding: 20px;
    }

    .back-btn {
        width: 100%;
        padding: 15px;
    }
}

/* Scrollbar Styling */
.policy-content::-webkit-scrollbar {
    width: 8px;
}

.policy-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.policy-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.policy-content::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

