/**
 * CSS para página de Termos e Condições - Imovz Tools
 * Versão: 1.0.0
 */

/* Container principal */
.imovz-termos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Header */
.imovz-termos-header {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.imovz-termos-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.header-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-content .subtitle {
    font-size: 1.3rem;
    color: #6c757d;
    font-weight: 400;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.last-updated {
    display: inline-block;
}

.update-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Summary Card */
.imovz-termos-summary {
    margin-bottom: 40px;
}

.summary-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.summary-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.summary-item .icon {
    font-size: 2rem;
    line-height: 1;
}

.summary-item strong {
    font-size: 1.1rem;
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
}

.summary-item p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

/* Layout do conteúdo */
.imovz-termos-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Navegação lateral */
.termos-navigation {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.nav-sticky {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    max-height: 70vh;
    overflow-y: auto;
}

.nav-sticky h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin-bottom: 8px;
}

.nav-list li:last-child {
    margin-bottom: 0;
}

.nav-link {
    display: block;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #2c3e50;
    transform: translateX(5px);
}

.nav-link:hover::before {
    transform: translateX(0);
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Conteúdo principal */
.termos-main {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

/* Seções */
.term-section {
    margin-bottom: 60px;
    scroll-margin-top: 120px;
}

.term-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.section-content {
    color: #495057;
}

.section-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #34495e;
    margin: 35px 0 15px 0;
    line-height: 1.3;
}

.section-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin: 25px 0 12px 0;
}

.section-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin: 20px 0 10px 0;
}

.section-content p {
    font-size: 1.05rem;
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.7;
}

.section-content ul {
    margin: 20px 0 20px 25px;
    padding: 0;
}

.section-content li {
    font-size: 1.05rem;
    color: #495057;
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
}

.section-content li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

/* Grids especiais */
.definitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.definition-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    border-left: 4px solid #667eea;
}

.definition-item strong {
    color: #2c3e50;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}

.definition-item p {
    margin: 0;
    font-size: 0.95rem;
}

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

.service-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.service-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.service-item h5 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
}

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

.plan-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.plan-card.featured {
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.plan-card h5 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.plan-card li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.plan-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Listas especiais */
.prohibited-list {
    margin: 30px 0;
}

.prohibited-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 12px;
    border-left: 4px solid #f56565;
}

.prohibited-item .icon {
    font-size: 1.5rem;
    color: #f56565;
    flex-shrink: 0;
}

.prohibited-item strong {
    color: #2c3e50;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.prohibited-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #495057;
}

/* Boxes especiais */
.attention-box,
.warning-box,
.notice-box,
.change-box,
.limitation-box,
.consequence-box {
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 4px solid;
}

.attention-box {
    background: #fffaf0;
    border-color: #f6ad55;
    color: #744210;
}

.warning-box {
    background: #fff5f5;
    border-color: #f56565;
    color: #742a2a;
}

.notice-box {
    background: #f0fff4;
    border-color: #48bb78;
    color: #22543d;
}

.change-box {
    background: #ebf8ff;
    border-color: #4299e1;
    color: #2c5282;
}

.limitation-box {
    background: #faf5ff;
    border-color: #9f7aea;
    color: #553c9a;
}

.consequence-box {
    background: #fffbf0;
    border-color: #ed8936;
    color: #7b341e;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.right-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.right-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.right-item strong {
    color: #2c3e50;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.right-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #495057;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item strong {
    color: #2c3e50;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.contact-item p {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #495057;
}

.contact-item small {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Resolution Steps */
.resolution-steps {
    margin: 30px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 100%;
    height: 20px;
    width: 2px;
    background: #e9ecef;
}

.step:last-child::before {
    display: none;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step strong {
    color: #2c3e50;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.step p {
    margin: 0;
    font-size: 0.95rem;
    color: #495057;
}

/* Footer */
.imovz-termos-footer {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-top: 5px solid linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.acceptance-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.acceptance-box h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.acceptance-box p {
    color: #495057;
    margin-bottom: 25px;
}

.footer-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-print,
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-print {
    background: #6c757d;
    color: white;
}

.btn-print:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.legal-info {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.legal-info p {
    margin: 5px 0;
    color: #495057;
    font-size: 0.95rem;
}

.version-info {
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.version-info p {
    margin: 5px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .imovz-termos-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .termos-navigation {
        position: static;
    }

    .nav-sticky {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .imovz-termos-container {
        padding: 20px 15px;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .header-content .subtitle {
        font-size: 1.1rem;
    }

    .imovz-termos-header {
        padding: 40px 25px;
    }

    .summary-card,
    .termos-main,
    .imovz-termos-footer {
        padding: 30px 25px;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

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

    .summary-grid,
    .services-grid,
    .plans-comparison,
    .rights-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-print,
    .btn-download {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .imovz-termos-container {
        padding: 15px 10px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .imovz-termos-header {
        padding: 30px 20px;
    }

    .summary-card,
    .termos-main,
    .imovz-termos-footer {
        padding: 25px 20px;
    }

    .section-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

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

    .nav-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step::before {
        display: none;
    }
}

/* Print Styles */
@media print {
    .imovz-termos-container {
        background: white;
        padding: 0;
    }

    .termos-navigation {
        display: none;
    }

    .imovz-termos-content {
        grid-template-columns: 1fr;
    }

    .footer-actions {
        display: none;
    }

    .term-section {
        page-break-inside: avoid;
        page-break-after: always;
    }

    .term-section:last-child {
        page-break-after: auto;
    }

    .section-header {
        page-break-inside: avoid;
    }
}

/* Accessibility */
.imovz-termos-container *:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .imovz-termos-container {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: #e9ecef;
    }

    .imovz-termos-header,
    .summary-card,
    .termos-main,
    .imovz-termos-footer,
    .nav-sticky,
    .service-item,
    .plan-card,
    .contact-item {
        background: #212529;
        border-color: #343a40;
    }

    .header-content h1,
    .section-header h2,
    .acceptance-box h3 {
        color: #f8f9fa;
    }

    .header-content .subtitle,
    .section-content p,
    .section-content li,
    .legal-info p {
        color: #adb5bd;
    }

    .summary-item,
    .definition-item,
    .right-item,
    .step {
        background: #343a40;
        border-color: #495057;
    }

    .acceptance-box {
        background: #343a40;
        border-color: #495057;
    }

    .version-info p {
        color: #6c757d;
    }
}
