/* CSS for Privacy Policy, Terms & Conditions, and Contact pages */

.policy-section, .terms-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
    min-height: calc(100vh - 120px); /* Account for footer */
}

.policy-content, .terms-content {
    background: var(--primary-color);
    padding: 40px;
    border-radius: var(--border-radious);
    margin-top: 30px;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.policy-content h3, .terms-content h3 {
    color: var(--color-shadow);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 22px;
    position: relative;
    padding-left: 15px;
}

.policy-content h3::before, .terms-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: linear-gradient(to bottom, #85FFC4, #5CC6FF, #BC85FF);
    border-radius: 2px;
}

.policy-content p, .terms-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--white);
    opacity: 0.9;
}

.policy-content ul, .terms-content ul {
    list-style-type: none;
    margin-bottom: 25px;
    padding-left: 10px;
}

.policy-content ul li, .terms-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--white);
    opacity: 0.9;
}

.policy-content ul li::before, .terms-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-shadow);
    font-size: 20px;
    line-height: 1;
}

.policy-content strong, .terms-content strong {
    color: var(--color-shadow);
    font-weight: 600;
}

.last-updated {
    font-size: 14px;
    color: var(--light-text);
    opacity: 0.7;
    margin-bottom: 30px;
    text-align: center;
}

.disclaimer-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radious);
    padding: 20px;
    margin: 30px 0;
    border-left: 4px solid var(--color-shadow);
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--border-radious);
    margin-top: 15px;
}

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

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}

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

.back-to-top i {
    transform: translateY(-2px);
}

/* Table of contents for mobile */
.toc-toggle {
    display: none;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radious);
    cursor: pointer;
    text-align: center;
    font-weight: 500;
}

.toc-content {
    display: none;
    margin-bottom: 30px;
}

.toc-content ul {
    margin-bottom: 0;
}

.toc-content ul li a {
    color: var(--color-shadow);
    text-decoration: none;
}

/* Contact Form Styles */
.contact-form-section, .contact-info-section {
    width: 100%;
}

.contact-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-shadow);
    box-shadow: 0 0 0 2px rgba(92, 198, 255, 0.2);
}

.form-group.focused label {
    color: var(--color-shadow);
    transform: translateY(-5px);
    font-size: 14px;
}

.contact-button {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: var(--color-shadow);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.contact-button:hover {
    background-color: #6CDBFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.contact-button:active {
    transform: translateY(0);
}

.faq-item {
    padding-left: 15px;
    border-left: 3px solid var(--color-shadow);
    margin-left: 5px;
    margin-bottom: 25px;
}

.faq-item strong {
    font-size: 17px;
    margin-bottom: 8px;
    display: block;
}

.message-container {
    margin: 20px 0;
}

.success-message {
    background: rgba(82, 202, 150, 0.2);
    border-left: 4px solid #52CA96;
    padding: 15px;
    border-radius: var(--border-radious);
    margin-bottom: 20px;
}

.error-message {
    background: rgba(255, 89, 147, 0.2);
    border-left: 4px solid #FF5993;
    padding: 15px;
    border-radius: var(--border-radious);
    margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .policy-section, .terms-section {
        padding: 60px 0;
    }

    .policy-content, .terms-content {
        padding: 30px 20px;
    }

    .policy-content h3, .terms-content h3 {
        font-size: 20px;
    }

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

    .toc-toggle {
        display: block;
    }

    .policy-content ul li, .terms-content ul li {
        padding-left: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Animation keyframes for contact form elements */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-form-section .form-group {
    animation: fadeIn 0.5s ease-out forwards;
}

.contact-form-section .form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-form-section .form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-form-section .form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-button {
    animation: fadeIn 0.5s ease-out 0.4s forwards;
    opacity: 0;
}

/* Print styles */
@media print {
    .policy-section, .terms-section {
        padding: 0;
        background: white;
    }

    .policy-content, .terms-content {
        box-shadow: none;
        padding: 0;
        color: black;
        background: white;
    }

    .policy-content h3, .terms-content h3 {
        color: black;
    }

    .policy-content p, .terms-content p,
    .policy-content ul li, .terms-content ul li {
        color: black;
    }

    .back-to-top, .toc-toggle, footer, .contact-form {
        display: none !important;
    }
}