/* ====================================
   TERMOS E CONDIÇÕES - CUSTOM STYLES
   ==================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff" fill-opacity="0.1"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
}

.hero-icon i {
    font-size: 48px;
    color: #ffffff;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    color: #0d6efd;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.sidebar-nav .nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav .nav-link {
    color: #495057;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    background: #f8f9fa;
    color: #0d6efd;
    border-left-color: #0d6efd;
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #ffffff;
    font-weight: 600;
    border-left-color: #0d6efd;
}

.sidebar-nav .nav-link i {
    margin-right: 10px;
    font-size: 0.85rem;
}

.sidebar-cta {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f7ff 100%);
    border-radius: 10px;
    border: 1px solid #cfe2ff;
    text-align: center;
}

.sidebar-cta h6 {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 5px;
}

.sidebar-cta p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 15px;
}

/* Content Sections */
.content-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.content-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f8f9fa;
}

.section-header h2 {
    color: #0d6efd;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.section-header h2 i {
    font-size: 1.6rem;
}

.section-content {
    color: #495057;
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 20px;
}

.section-content strong {
    color: #212529;
    font-weight: 600;
}

/* Info Boxes */
.info-box, .warning-box, .cta-box {
    padding: 20px 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid;
}

.info-box {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f7ff 100%);
    border-left-color: #0d6efd;
}

.info-box h5 {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.info-box ul li {
    padding: 8px 0;
    color: #495057;
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-left-color: #ffc107;
}

.cta-box {
    background: linear-gradient(135deg, #d1f7d6 0%, #e8f8ea 100%);
    border-left-color: #198754;
}

.cta-box h5 {
    color: #198754;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Definition List */
.definition-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.definition-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #0d6efd;
    transition: all 0.3s ease;
}

.definition-item:hover {
    background: #e7f3ff;
    transform: translateX(5px);
}

.definition-item h5 {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.definition-item p {
    color: #495057;
    margin: 0;
    line-height: 1.6;
}

/* Numbered List */
.numbered-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.numbered-item {
    display: flex;
    gap: 20px;
    position: relative;
}

.numbered-item .number {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.numbered-item .content {
    flex: 1;
}

.numbered-item .content h5 {
    color: #212529;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.numbered-item .content p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 12px;
}

.numbered-item .content ul {
    margin-bottom: 12px;
}

.numbered-item .content ul li {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.service-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 28px;
    color: #ffffff;
}

.service-card h5 {
    color: #212529;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.service-card ul li {
    padding: 8px 0;
    color: #495057;
    font-size: 0.9rem;
    display: flex;
    align-items: start;
    gap: 10px;
}

.service-card ul li::before {
    content: '✓';
    color: #198754;
    font-weight: 700;
    flex-shrink: 0;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.contact-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    font-size: 24px;
    color: #ffffff;
}

.contact-card h5 {
    color: #212529;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-card p {
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-card a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    border-radius: 10px;
    padding: 20px 25px;
    margin: 25px 0;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert i {
    margin-right: 10px;
}

.alert-primary {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f7ff 100%);
    color: #084298;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    color: #664d03;
}

/* Final Section */
.final-section {
    margin-bottom: 0;
}

.final-section .alert-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

#backToTop:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.5);
}

/* Footer Adjustments */
.footer {
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .sidebar-nav {
        position: static;
        margin-bottom: 30px;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-icon {
        width: 80px;
        height: 80px;
    }

    .hero-icon i {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .content-section {
        padding: 25px 20px;
    }

    .numbered-item {
        flex-direction: column;
        gap: 15px;
    }

    .numbered-item .number {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    #backToTop {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }

    .hero-meta {
        font-size: 0.85rem;
        flex-direction: column;
    }

    .hero-meta span.mx-3 {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar-nav,
    .footer,
    #backToTop {
        display: none;
    }

    .content-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .hero-section {
        background: #0d6efd;
        padding: 40px 0 30px;
    }
}

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

.content-section {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Selection Color */
::selection {
    background: #0d6efd;
    color: #ffffff;
}

::-moz-selection {
    background: #0d6efd;
    color: #ffffff;
}

/* patch footer logo and top contact icons */
.footer-logo, .footer img{max-height:72px;width:auto;display:block}
.top-bar .contact-info i{margin-right:6px}
.top-bar .contact-info a{white-space:nowrap}
