/* Navigation Bar */
body{
    scroll-behavior: smooth;
}
.policy-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: #555;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #f0f0f0;
    color: #667eea;
}

.nav-link.active {
    background-color: #667eea;
    color: white;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.cookie-text p {
    font-size: 0.9rem;
    color: #666;
}

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

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-accept {
    background-color: #4caf50;
    color: white;
}

.btn-accept:hover {
    background-color: #45a049;
}

.btn-reject {
    background-color: #f44336;
    color: white;
}

.btn-reject:hover {
    background-color: #da190b;
}

.btn-customize {
    background-color: #2196f3;
    color: white;
}

.btn-customize:hover {
    background-color: #0b7dda;
}

.btn-link {
    background-color: transparent;
    color: #2196f3;
    border: 2px solid #2196f3;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background-color: #2196f3;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}

.close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ddd;
}

.modal-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

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

.category-header h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.category-header p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4caf50;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.switch.disabled .slider {
    cursor: not-allowed;
}

.modal-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    text-align: right;
}

/* Policy Container */
.policy-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.policy-section {
    display: none;
}

.policy-section.active {
    display: block;
    animation: fadeInContent 0.5s;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-header {
    text-align: center;
    padding: 40px 20px;
    color: white;
    border-radius: 8px;
    margin-bottom: 30px;
}

.privacy-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.refund-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.cookie-header {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
}

.policy-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Table of Contents */
.table-of-contents {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.table-of-contents h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #667eea;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin: 8px 0;
}

.table-of-contents a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #667eea;
}

/* Quick Info Cards (Refund Policy) */
.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.info-card .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.info-card h3 {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 1rem;
    font-weight: 600;
    color: #f5576c;
}

/* Policy Content */
.policy-content {
    padding: 0 20px;
}

.policy-content article {
    margin-bottom: 40px;
    scroll-margin-top: 90px;
}

.policy-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

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

.policy-content ul {
    margin: 15px 0 15px 30px;
}

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

/* Checklist Items */
.checklist {
    margin-top: 20px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.checklist-item .check {
    font-size: 1.5rem;
    color: #4caf50;
    margin-right: 15px;
    font-weight: bold;
}

.checklist-item p {
    margin: 0;
    flex: 1;
}

/* Accordion */
.rights-accordion {
    margin-top: 20px;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 15px;
    background-color: #f8f9fa;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
}

.accordion-content p {
    padding: 15px;
    margin: 0;
}

/* Steps */
.steps {
    margin-top: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.step-number {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 20px;
}

.step-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.step-content p {
    color: #555;
    margin: 0;
}

/* Refund Options */
.refund-options {
    margin-top: 20px;
}

.option {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #f5576c;
}

/* Cookie Type Cards */
.cookie-type-card {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffa726;
}

.cookie-type-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.cookie-type-card p {
    margin: 8px 0;
    font-size: 0.95rem;
}

/* Cookie Table */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-table thead {
    background-color: #ffa726;
    color: white;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

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

/* Manage Options */
.manage-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.manage-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.manage-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.manage-card p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.browser-instructions {
    margin-top: 20px;
    padding: 20px;
    background-color: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    display: none;
}

.browser-instructions.show {
    display: block;
}

.browser-instructions h3 {
    margin-bottom: 15px;
}

/* Contact Info */
.contact-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

#refund-policy .contact-info {
    border-left-color: #f5576c;
}

#cookie-policy .contact-info {
    border-left-color: #ffa726;
}

.contact-info p {
    margin: 10px 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 220px;
        font-size: small;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-link {
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .policy-container {
        padding: 10px;
    }

    .policy-header {
        padding: 30px 15px;
    }

    .policy-header h1 {
        font-size: 1.8rem;
    }

    .quick-info {
        grid-template-columns: 1fr;
    }

    .policy-content {
        padding: 0 10px;
    }

    .policy-content h2 {
        font-size: 1.4rem;
    }

    .step {
        flex-direction: column;
    }

    .step-number {
        margin-bottom: 15px;
    }

    .manage-options {
        grid-template-columns: 1fr;
    }

    .table-container {
        font-size: 0.85rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px 10px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .policy-header h1 {
        font-size: 1.5rem;
    }

    .policy-content h2 {
        font-size: 1.2rem;
    }

    .cookie-icon {
        font-size: 2rem;
    }

    .info-card {
        padding: 20px;
    }

    .checklist-item {
        padding: 12px;
    }

    .policy-content ul {
        margin-left: 20px;
    }
    .table-container {
        font-size: 0.55rem;
    }

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

@media (max-width: 300px) {
    body{
        font-size: x-small;
        padding-top: 190px;
    }
}