/* Terms of Use Page Specific Styles */

/* Terms of Use Page Specific Styles */

.terms-hero {
    background: #ffffff !important;
    background-image: none !important;
    padding: 12rem 0 8rem;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.terms-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgb(16, 202, 183), transparent);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.terms-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.terms-header {
    max-width: 800px;
    margin: 0 auto;
}

.terms-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #10CAB7 !important;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.terms-hero .last-updated {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 3rem;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.7s forwards;
}

.terms-intro {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    color: #718096;
    line-height: 1.8;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.terms-navigation {
    padding: 80px 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 25px;
    background: #ffffff;
    border-radius: 25px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 202, 183, 0.1), transparent);
    transition: left 0.6s;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: #ffffff;
    border-color: rgb(16, 202, 183);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(16, 202, 183, 0.15);
    color: #2d3748;
    text-decoration: none;
}

.nav-item.active {
    background: rgba(16, 202, 183, 0.08);
    border-color: rgb(16, 202, 183);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 2.2rem;
    margin-right: 20px;
    min-width: 70px;
    text-align: center;
    color: rgb(16, 202, 183);
}

.nav-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

.nav-content p {
    font-size: 0.95rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

.terms-sections {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 120px;
    background: #ffffff;
}

.terms-section {
    margin-bottom: 50px;
    background: #ffffff;
    padding: 60px;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.3s forwards;
}

.terms-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, rgb(16, 202, 183), rgba(16, 202, 183, 0.6));
}

.terms-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(16, 202, 183, 0.15);
    border-color: rgb(16, 202, 183);
}

.terms-section h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.section-number {
    background: linear-gradient(135deg, rgb(16, 202, 183), rgba(16, 202, 183, 0.8));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 202, 183, 0.3);
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 25px;
    font-weight: 400;
}

.section-content ul {
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
}

.section-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.section-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: rgb(16, 202, 183);
    font-weight: bold;
    font-size: 1.1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.service-item {
    padding: 30px;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 202, 183, 0.05), transparent);
    transition: left 0.6s;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    border-color: rgb(16, 202, 183);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 202, 183, 0.1);
}

.service-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgb(16, 202, 183);
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1rem;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

.important-note {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-left: 5px solid #e53e3e;
    padding: 25px;
    margin: 40px 0;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.1);
}

.important-note strong {
    color: #e53e3e;
    font-weight: 600;
}

.contact-highlight {
    background: linear-gradient(135deg, rgb(16, 202, 183), rgba(16, 202, 183, 0.9));
    color: white;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 10px 30px rgba(16, 202, 183, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.contact-highlight h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.contact-highlight p {
    font-size: 1.1rem;
    margin: 0;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.contact-highlight a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-highlight a:hover {
    text-decoration: none;
    opacity: 0.9;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgb(16, 202, 183), rgba(16, 202, 183, 0.8));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(16, 202, 183, 0.3);
}

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

.back-to-top:hover {
    background: linear-gradient(135deg, rgba(16, 202, 183, 0.9), rgba(16, 202, 183, 0.7));
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(16, 202, 183, 0.4);
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.back-to-top:hover::before {
    left: 100%;
}

/* Footer animation */
.footer {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

/* Terms Footer Section Styles */
.terms-footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(16, 202, 183, 0.3);
    position: relative;
    overflow: hidden;
}

.terms-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(16, 202, 183, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 202, 183, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.terms-footer .container {
    position: relative;
    z-index: 2;
}

.contact-info {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info h3 {
    color: #0d7377;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(13, 115, 119, 0.2);
}

.contact-info > p {
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(16, 202, 183, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 202, 183, 0.5);
    box-shadow: 0 8px 30px rgba(16, 202, 183, 0.15);
}

.contact-item i {
    font-size: 1.2rem;
    color: #0d7377;
    min-width: 20px;
}

.contact-item strong {
    color: #1e293b;
    font-weight: 600;
}

.contact-item a {
    color: #0d7377;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #0a5d61;
    text-shadow: 0 0 10px rgba(13, 115, 119, 0.3);
}

.contact-item span {
    color: #475569;
}

.version-info {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(16, 202, 183, 0.3);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-top: 2rem;
}

.version-info p {
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.version-info strong {
    color: #0d7377;
    font-weight: 600;
}

/* Responsive design for terms footer */
@media (max-width: 768px) {
    .terms-footer {
        padding: 3rem 0;
        margin-top: 3rem;
    }
    
    .contact-info h3 {
        font-size: 1.6rem;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        text-align: center;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .terms-hero {
        padding: 100px 0 50px;
    }

    .terms-hero h1 {
        font-size: 2.5rem;
    }
    
    .terms-hero .last-updated {
        font-size: 1rem;
    }
    
    .terms-intro {
        font-size: 0.9rem;
    }
    
    .terms-section {
        padding: 40px 30px;
        margin-bottom: 30px;
    }
    
    .terms-section h2 {
        font-size: 1.8rem;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-item {
        padding: 20px;
    }
    
    .nav-icon {
        font-size: 1.8rem;
        margin-right: 15px;
        min-width: 50px;
    }
    
    .nav-content h4 {
        font-size: 1.1rem;
    }
    
    .nav-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .terms-hero h1 {
        font-size: 2.2rem;
    }

    .terms-hero .last-updated {
        font-size: 1rem;
    }

    .terms-intro {
        font-size: 1rem;
    }

    .terms-section {
        padding: 25px 20px;
    }

    .terms-section h2 {
        font-size: 1.6rem;
        flex-direction: column;
        text-align: center;
    }

    .section-number {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .nav-item {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .nav-icon {
        margin-right: 0;
        margin-bottom: 15px;
        font-size: 2rem;
    }

    .nav-content h4 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .service-item {
        padding: 25px 20px;
    }

    .contact-highlight {
        padding: 25px 20px;
    }

    .contact-highlight h3 {
        font-size: 1.4rem;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Additional styling for better integration with main site */
.terms-hero .container {
    animation: fadeInUp 0.8s ease-out;
}

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

.nav-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }
.nav-item:nth-child(6) { animation-delay: 0.6s; }

.terms-section {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Stagger animations for sections */
.terms-section:nth-child(1) { animation-delay: 1.3s; }
.terms-section:nth-child(2) { animation-delay: 1.4s; }
.terms-section:nth-child(3) { animation-delay: 1.5s; }
.terms-section:nth-child(4) { animation-delay: 1.6s; }
.terms-section:nth-child(5) { animation-delay: 1.7s; }
.terms-section:nth-child(6) { animation-delay: 1.8s; }
.terms-section:nth-child(7) { animation-delay: 1.9s; }
.terms-section:nth-child(8) { animation-delay: 2.0s; }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced visual effects */
.terms-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 202, 183, 0.05), transparent);
    transition: left 0.6s;
}

.terms-section:hover::after {
    left: 100%;
}

/* Improved text selection */
::selection {
    background: rgba(16, 202, 183, 0.2);
    color: #2d3748;
}

::-moz-selection {
    background: rgba(16, 202, 183, 0.2);
    color: #2d3748;
}

/* Improved focus styles */
.nav-item:focus {
    outline: 2px solid rgb(16, 202, 183);
    outline-offset: 2px;
}

.back-to-top:focus {
    outline: 2px solid rgb(16, 202, 183);
    outline-offset: 2px;
}

/* Ensure back-to-top button starts hidden */
.back-to-top {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Add JavaScript for back-to-top functionality if not present in main.js */

/* Loading state for better UX */
body.loading {
    overflow: hidden;
}

body.loading .terms-hero,
body.loading .terms-navigation,
body.loading .terms-sections,
body.loading .footer {
    opacity: 0;
}

/* Improved print styles */
@media print {
    .navbar,
    .back-to-top,
    .terms-navigation {
        display: none !important;
    }
    
    .terms-hero {
        margin-top: 0;
        padding: 2rem 0;
    }
    
    .terms-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Performance optimizations */
.terms-section::before,
.terms-section::after,
.nav-item::before {
    will-change: transform, opacity;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .terms-hero h1,
    .terms-hero .last-updated,
    .terms-intro,
    .terms-navigation,
    .terms-section,
    .footer {
        opacity: 1 !important;
        animation: none !important;
    }
    
    .terms-section:hover,
    .nav-item:hover {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .terms-section {
        border: 2px solid #000;
    }
    
    .nav-item {
        border: 2px solid #000;
    }
    
    .terms-hero h1 {
        color: #000 !important;
    }
}
