/* QR Code Grátis - CSS Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin-bottom: 16px;
}

.logo svg {
    width: 40px;
    height: 40px;
    color: white;
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.subtitle {
    color: #ffffff;
    font-size: 1.125rem;
}

/* Top Header with Navigation */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.header-logo-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Navigation Styles */
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn svg {
    color: white;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu a:hover {
    background: rgba(102, 126, 234, 0.1);
}

.nav-container {
    position: relative;
}

/* Main Card */
.main-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #6b7280;
    position: relative;
}

.tab.active {
    color: #667eea;
    background: white;
    box-shadow: 0 -2px 0 #667eea inset;
}

.tab:hover:not(.active) {
    color: #374151;
    background: rgba(102, 126, 234, 0.05);
}

/* Content */
.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.form-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: none;
    height: 100px;
}

.form-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.form-help.error {
    color: #ef4444;
    font-weight: 500;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Buttons */
.clear-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-btn:enabled {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.clear-btn:enabled:hover {
    background: #e5e7eb;
    color: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.clear-btn:disabled {
    background: #f9fafb;
    color: #d1d5db;
    cursor: not-allowed;
    border: 1px solid #f3f4f6;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    width: 100%;
    font-size: 16px;
}

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

/* QR Code Section */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 24px;
}

.qr-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.qr-placeholder {
    padding: 64px 0;
    color: #9ca3af;
}

.qr-placeholder svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: 0.6;
}

.qr-result {
    text-align: center;
}

.qr-help {
    font-size: 14px;
    color: #6b7280;
    margin-top: 16px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    margin-top: 24px;
}

.hidden {
    display: none;
}

/* Info Cards Section */
.info-cards {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.info-cards h2 {
    text-align: center;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.card-description {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left;
}

.card-description strong {
    color: #1f2937;
    font-weight: 600;
}

.card-description ul {
    margin: 12px 0;
    padding-left: 0;
    list-style: none;
}

.card-description li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

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

.card-advantage {
    margin-top: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 3px solid #667eea;
    border-radius: 6px;
}

.info-footer {
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
}

.info-footer p {
    color: #ffffff;
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section h2 {
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 24px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-section h3 {
    color: #374151;
    font-size: 1.5rem;
    margin: 30px 0 16px 0;
    position: relative;
    padding-left: 16px;
}

.content-section h3:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.content-section p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1rem;
}

.content-section ul {
    color: #6b7280;
    line-height: 1.7;
    margin: 16px 0;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 8px;
    position: relative;
}

.content-section li::marker {
    color: #667eea;
}

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

.benefit-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.benefit-item h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.benefit-item p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Footer */
.footer {
    margin-top: 60px;
    text-align: center;
}

.seo-content {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-content h2 {
    color: #1f2937;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-content h3 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.seo-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.seo-content ul {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 25px;
    padding-left: 0;
    list-style: none;
}

.seo-content li {
    margin-bottom: 8px;
    padding-left: 0;
}

.footer-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content p {
    color: #ffffff;
    margin: 10px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.footer-content a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-content a:hover {
    border-bottom-color: #ffffff;
    opacity: 0.8;
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#scrollTopBtn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .info-cards {
        margin: 40px auto 20px;
        padding: 0 10px;
    }
    
    .info-cards h2 {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-card {
        padding: 24px 20px;
    }
    
    .card-title {
        font-size: 1.25rem;
    }

    .content-section {
        padding: 24px;
        margin: 20px auto;
    }

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

    /* Mobile Header */
    .top-header {
        padding: 12px 16px;
    }

    .header-logo-text {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .seo-content {
        padding: 20px;
        margin: 20px auto;
    }

    .footer-content {
        padding: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }

    .title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .main-card {
        border-radius: 16px;
    }

    .content {
        padding: 15px;
    }

    .tab {
        padding: 12px 16px;
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Focus States for Accessibility */
.tab:focus,
.btn:focus,
.clear-btn:focus,
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .main-card {
        border: 2px solid #000;
    }
    
    .tab.active {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Estilos específicos para páginas de política e termos */
.privacy-main-card,
.terms-main-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.back-link:hover {
    color: #4f46e5;
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(-2px);
}

.privacy-title,
.terms-title {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-section h2,
.terms-section h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    position: relative;
    padding-left: 16px;
}

.privacy-section h2:before,
.terms-section h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.privacy-section h3,
.terms-section h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.privacy-section h4,
.terms-section h4 {
    color: #4b5563;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.privacy-section p,
.terms-section p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.7;
}

.privacy-section ul, 
.privacy-section ol,
.terms-section ul,
.terms-section ol {
    color: #6b7280;
    margin-bottom: 16px;
    padding-left: 24px;
    line-height: 1.7;
}

.privacy-section li,
.terms-section li {
    margin-bottom: 8px;
}

.privacy-section li::marker,
.terms-section li::marker {
    color: #667eea;
}

.highlight-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #0ea5e9;
}

.highlight-box h3 {
    color: #0ea5e9;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #f59e0b;
}

.warning-box h3 {
    color: #d97706;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-box {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #10b981;
}

.success-box h3 {
    color: #059669;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid #e2e8f0;
}

.contact-info {
    color: #374151;
    font-weight: 500;
}

.date-updated {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 12px;
    margin: 20px 0;
    font-size: 14px;
    color: #065f46;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-compliance,
.service-features,
.legal-info {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    border-left: 4px solid #667eea;
}

.legal-compliance h3,
.service-features h3,
.legal-info h3 {
    color: #1f2937;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-footer-note,
.terms-footer-note {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    border: 1px solid #e2e8f0;
}

/* Responsive adjustments para páginas legais */
@media (max-width: 768px) {
    .privacy-main-card,
    .terms-main-card {
        padding: 24px;
    }
    
    .privacy-title,
    .terms-title {
        font-size: 1.75rem;
    }
    
    .privacy-section h2,
    .terms-section h2 {
        font-size: 1.3rem;
    }
}