.terms-policy-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.terms-header {
    position: relative;
}

.terms-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.service-nav-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-nav-link:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #007bff;
}

.service-nav-link i {
    transition: transform 0.3s ease;
}

.service-nav-link:hover i {
    transform: scale(1.1);
}

.term-item {
    border-left: 4px solid transparent;
    padding-left: 1rem;
    transition: border-left-color 0.3s ease;
}

.term-item:hover {
    border-left-color: #007bff;
}

.process-timeline {
    position: relative;
    padding-left: 2rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #007bff, #28a745);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2.25rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.integration-warning {
    border: 2px dashed #ffc107;
    transition: all 0.3s ease;
}

.integration-warning:hover {
    border-style: solid;
    transform: scale(1.02);
}

.seo-billing {
    border-left: 4px solid #28a745;
}

.requirements-list .requirement-item {
    padding: 0.75rem;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.requirements-list .requirement-item:hover {
    background: #e9ecef;
    transform: translateX(10px);
}

.seo-guarantees {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

.obligations-card {
    transition: transform 0.2s ease;
}

.obligations-card:hover {
    transform: translateY(-5px);
}

.payment-info,
.changes-info {
    transition: all 0.2s ease;
}

.payment-info:hover,
.changes-info:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ip-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.ip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.ip-card i {
    transition: transform 0.3s ease;
}

.ip-card:hover i {
    transform: rotate(10deg) scale(1.1);
}

.uptime-guarantee {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.feature-box {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.feature-box:hover {
    border-left-color: #007bff;
    transform: translateX(5px);
}

.responsibility-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

.responsibility-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #007bff !important;
}

.responsibility-item i {
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.responsibility-item:hover i {
    color: #007bff !important;
}

.billing-info {
    transition: all 0.2s ease;
}

.billing-info:hover {
    transform: scale(1.05);
}

.support-item {
    padding: 0.75rem;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.support-item:hover {
    background: #e9ecef;
    transform: translateX(10px);
}

.support-hours {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

.exclusion-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

.exclusion-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.legal-card,
.compliance-card {
    transition: all 0.2s ease;
}

.legal-card:hover,
.compliance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.termination-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.termination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #007bff !important;
}

.termination-card i {
    transition: transform 0.3s ease;
}

.termination-card:hover i {
    transform: scale(1.2);
}

.contact-info i {
    opacity: 0.9;
    transition: all 0.2s ease;
}

.contact-info i:hover {
    opacity: 1;
    transform: scale(1.1);
}

.alert {
    border-left: 4px solid;
    transition: all 0.2s ease;
}

.alert:hover {
    transform: translateX(5px);
}

.alert-success {
    border-left-color: #28a745;
}

.alert-info {
    border-left-color: #17a2b8;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-danger {
    border-left-color: #dc3545;
}

/* Scroll to section smooth animation */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-policy-container {
        padding: 1rem 0;
    }

    .display-4 {
        font-size: 2rem;
    }

    .service-nav-link {
        margin-bottom: 1rem;
    }

    .process-timeline {
        padding-left: 1rem;
    }

    .process-timeline::before {
        left: 8px;
    }

    .timeline-marker {
        left: -1.5rem;
    }

    .ip-card,
    .termination-card {
        margin-bottom: 1rem;
    }

    .responsibility-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .terms-header h1 {
        font-size: 1.75rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .service-nav-link {
        padding: 0.75rem;
    }

    .service-nav-link i {
        font-size: 1.5rem !important;
    }
}

/* Print styles */
@media print {
    .terms-policy-container {
        background: white !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }

    .bg-primary,
    .bg-success,
    .bg-warning,
    .bg-danger,
    .bg-info {
        background: white !important;
        color: black !important;
    }

    .service-nav-link:hover,
    .card:hover,
    .term-item:hover {
        transform: none !important;
    }
}

/* Focus states for accessibility */
.service-nav-link:focus,
.card:focus,
button:focus,
a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000 !important;
    }

    .section-divider {
        background: #000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.service-nav-link.active {
    background: #007bff !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.service-nav-link.active i {
    color: white !important;
}