/* Terms of Service Page Styles
-------------------------------------------------- */

/* Hero Section Styles */
.terms-hero {
    position: relative;
    padding: 100px 0 140px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.1) 100%);
    overflow: hidden;
}

.text-gradient {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.terms-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.terms-meta span {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 14px;
}

.terms-meta i {
    margin-right: 8px;
    color: #0d6efd;
}

/* Shape Divider */
.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.shape-divider .shape-fill {
    fill: #FFFFFF;
}

/* Terms Navigation Section */
.terms-navigation {
    padding: 50px 0;
    background-color: #fff;
}

.terms-nav-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.terms-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.terms-nav-link:hover {
    background-color: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
    transform: translateX(5px);
}

.terms-nav-link i {
    margin-right: 10px;
    color: #0d6efd;
    width: 20px;
    text-align: center;
}

/* Terms Content Section */
.terms-content {
    padding: 50px 0 80px;
    background-color: #f8f9fa;
}

.terms-content-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.terms-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.terms-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(102, 16, 242, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.section-icon i {
    font-size: 20px;
    color: #0d6efd;
}

.section-header h2 {
    margin: 0;
    font-weight: 600;
}

.section-content {
    color: #495057;
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 20px;
}

.section-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    margin-bottom: 25px;
}

.alert-icon {
    font-size: 20px;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

/* Definitions Container */
.definitions-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.definition-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.definition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.definition-term {
    font-weight: 600;
    margin-bottom: 10px;
    color: #0d6efd;
    font-size: 18px;
}

.definition-description {
    color: #6c757d;
}

/* Accordion Styles */
.terms-accordion {
    margin-top: 25px;
}

.terms-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.terms-accordion .accordion-button {
    padding: 20px 25px;
    font-weight: 600;
    background-color: white;
    border: none;
    box-shadow: none;
}

.terms-accordion .accordion-button:not(.collapsed) {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.terms-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

.terms-accordion .accordion-body {
    padding: 20px 25px;
    background-color: white;
}

/* Tabs Styles */
.services-tabs .nav-pills {
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.services-tabs .nav-link {
    padding: 12px 20px;
    border-radius: 50px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.services-tabs .nav-link i {
    margin-right: 8px;
}

.services-tabs .nav-link.active {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    color: white;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.services-tabs .nav-link:not(.active):hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.services-tabs .tab-content {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

/* Payment Info Cards */
.payment-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.payment-info-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.payment-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(102, 16, 242, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon i {
    font-size: 24px;
    color: #0d6efd;
}

.payment-info-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.payment-info-card p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Payment Terms Table */
.payment-terms-table-container {
    margin-top: 30px;
}

.payment-terms-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.payment-terms-table td, .payment-terms-table th {
    padding: 15px;
    vertical-align: middle;
}

.table-note {
    font-size: 14px;
    color: #6c757d;
    margin-top: 10px;
    font-style: italic;
}

/* IP Cards */
.ip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.ip-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ip-card-header {
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.1), rgba(102, 16, 242, 0.1));
    padding: 20px;
    display: flex;
    align-items: center;
}

.ip-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.ip-icon i {
    font-size: 18px;
    color: #0d6efd;
}

.ip-card-header h4 {
    margin: 0;
    font-weight: 600;
}

.ip-card-body {
    padding: 20px;
}

.ip-card-body p:last-child {
    margin-bottom: 0;
}

/* Termination Timeline */
.termination-timeline {
    position: relative;
    margin-top: 30px;
    padding-left: 30px;
}

.termination-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 9px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, #0d6efd, #6610f2);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-point {
    position: absolute;
    left: -30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.timeline-content {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.timeline-content h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Liability Disclaimer */
.liability-disclaimer {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 25px;
    display: flex;
}

.disclaimer-icon {
    font-size: 40px;
    color: #0d6efd;
    margin-right: 25px;
    flex-shrink: 0;
}

.disclaimer-content p {
    margin-bottom: 15px;
}

.disclaimer-content ul {
    padding-left: 20px;
}

.disclaimer-content ul li {
    margin-bottom: 10px;
}

.liability-cap {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

.liability-cap h4 {
    margin-top: 0;
}

.liability-cap p {
    margin-bottom: 0;
}

/* Resolution Steps */
.resolution-steps {
    position: relative;
    margin-top: 30px;
}

.resolution-step {
    display: flex;
    margin-bottom: 25px;
}

.resolution-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    flex-grow: 1;
}

.step-content h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-content p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Version History */
.version-history {
    margin-top: 30px;
}

.version-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.version-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.version-date {
    min-width: 120px;
    font-weight: 600;
    color: #0d6efd;
    margin-right: 20px;
}

.version-details h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.version-details p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Notification Preferences */
.notification-preferences {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    flex: 1;
    min-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(102, 16, 242, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    font-size: 24px;
    color: #0d6efd;
}

.contact-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-card p {
    margin-bottom: 0;
}

.contact-card a {
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Acknowledgement Box */
.acknowledgement-box {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
}

/* Back to Top Button with Progress */
.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap i {
    color: white;
    font-size: 20px;
}

.progress-wrap svg {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-wrap svg path {
    fill: none;
    stroke: white;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 307;
    stroke-dashoffset: 307;
    transition: stroke-dashoffset 0.3s ease;
}

/* Print Terms Button */
.print-terms {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 100;
}

@media print {
    .terms-navigation,
    .footer,
    .navbar,
    .top-bar,
    .progress-wrap,
    .print-terms {
        display: none !important;
    }
    
    .terms-hero {
        padding: 20px 0;
    }
    
    .terms-content-card {
        box-shadow: none;
        padding: 0;
    }
    
    .terms-section {
        page-break-inside: avoid;
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .terms-hero {
        padding: 80px 0 120px;
    }
    
    .terms-content-card {
        padding: 30px;
    }
    
    .liability-disclaimer {
        flex-direction: column;
    }
    
    .disclaimer-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .services-tabs .nav-pills {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .terms-hero {
        padding: 60px 0 100px;
    }
    
    .terms-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .terms-nav-card,
    .terms-content-card {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .definitions-container,
    .payment-info-cards,
    .ip-cards {
        grid-template-columns: 1fr;
    }
    
    .version-item {
        flex-direction: column;
    }
    
    .version-date {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .print-terms {
        left: 50%;
        transform: translateX(-50%);
    }
}
