:root {
    --primary-color: #1e3a8a;
    --secondary-color: #ff9800;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #4f6bce 100%);
}

/* Terms Hero Section */
.terms-hero-section {
    background-color: var(--light-bg);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.terms-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.terms-hero-content .highlight {
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.hero-description {
    font-size: 1.1rem;
    color: #555;
    max-width: 90%;
    margin-bottom: 25px;
}

.trust-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
    margin-right: 10px;
}

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

.hero-buttons .btn {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-buttons .btn-primary:hover {
    background: #e08800;
    border-color: #e08800;
    transform: translateY(-3px);
}

.hero-buttons .btn-outline-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-buttons .btn-outline-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.terms-hero-image img {
    border-radius: 10px;
    transition: all 0.5s ease;
    max-width: 100%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.terms-hero-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

@media (max-width: 991px) {
    .terms-hero-section {
        padding: 60px 0 40px;
    }
    
    .terms-hero-content h1 {
        font-size: 2rem;
    }
    
    .terms-hero-image {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .terms-hero-section {
        padding: 40px 0 30px;
    }
    
    .terms-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn {
        padding: 8px 20px;
    }
}

/* Terms Header */
.terms-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #4f6bce 70%, #6a7fd8 100%);
    padding: 80px 0;
    color: white;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
}

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

.terms-header h1 {
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.terms-header h1::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.terms-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-top: 20px;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

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

/* Header Icon Styling */
.header-icon {
    color: var(--secondary-color);
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header Badges Styling */
.header-badges {
    margin-top: 25px;
}

.header-badges .badge {
    margin: 0 5px;
    padding: 8px 15px;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.header-badges .badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Table of Contents */
.toc-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.toc-list {
    list-style: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    padding: 5px 0;
    font-size: 0.95rem;
}

.toc-list a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Terms Content */
.terms-content {
    padding-bottom: 70px;
}

.terms-section {
    margin-bottom: 40px;
    padding-top: 20px;
}

.terms-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.terms-section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

/* Call to Action Section */
.cta-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
}

.cta-section p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.cta-buttons {
    margin-top: 30px;
}

.cta-buttons .btn {
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-success {
    background-color: #00c853;
    border-color: #00c853;
}

.cta-buttons .btn-success:hover {
    background-color: #00a844;
    border-color: #00a844;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,200,83,0.3);
}

.cta-buttons .btn-light {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

.cta-buttons .btn-light:hover {
    background-color: #dee2e6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .cta-buttons .btn {
        padding: 8px 20px;
    }
}

/* Terms List Styling */
.terms-list {
    list-style: none;
    padding-left: 0;
}

.terms-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.terms-list li i {
    margin-top: 3px;
    flex-shrink: 0;
}

.terms-section a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted;
}

.terms-section a:hover {
    border-bottom: 1px solid;
}

/* Contact Information */
.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

.contact-info i {
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .toc-container {
        margin-bottom: 40px;
        position: static;
    }
}

@media (max-width: 767px) {
    .terms-header {
        padding: 50px 0;
    }
    
    .terms-header h1 {
        font-size: 2.2rem;
    }
    
    .terms-header p {
        font-size: 1.1rem;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
    }
    
    .header-badges .badge {
        font-size: 0.7rem;
        margin: 0 3px;
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .terms-header {
        padding: 40px 0;
    }
    
    .terms-header h1 {
        font-size: 1.8rem;
    }
    
    .terms-header h1::after {
        width: 60px;
    }
}