/* termos.css - Estilos para página de Termos de Uso */

:root {
    /* Paleta de cores refinada - Mantida do Agendwork */
    --bg-dark: #0a0a10;
    --bg-card: #12121a;
    --bg-card-hover: #171724;
    --text: #f0f0f5;
    --muted: #9e9eb5;
    --brand-1: #0052cc;
    --brand-2: #0cb0f0;
    --brand-3: #ff9500;
    --success: #39E000;
    --danger: #ff4d4f;
    --warning: #ff9500;
    --shadow: 0 10px 30px rgba(0, 0, 0, .5);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, .3);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

/* Reset e estilos básicos */
html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Efeito de gradiente refinado */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(800px 400px at 85% -5%, rgba(0, 153, 255, 0.15), transparent 60%),
        radial-gradient(700px 350px at 5% 15%, rgba(0, 162, 255, 0.08), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header h1 {
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--text), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.header-info span {
    color: var(--muted);
    font-size: 0.9rem;
}

.badge {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Introdução */
.intro-section {
    margin-bottom: 30px;
}

.intro-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    border-left: 4px solid var(--brand-2);
    box-shadow: var(--shadow-light);
}

.intro-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.intro-card h2 i {
    color: var(--brand-2);
}

.intro-text {
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.date-info i {
    color: var(--brand-2);
}

/* Barra de progresso */
.progress-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin: 30px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--brand-1), var(--brand-2));
    width: 0;
    transition: width 0.5s ease;
    border-radius: 3px;
}

/* Container dos termos */
.terms-container {
    margin-bottom: 40px;
}

/* Seção de termo */
.term-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.term-section:hover {
    border-color: rgba(12, 176, 240, 0.2);
}

.term-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.term-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.term-header h3 {
    font-size: 1.2rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.term-number {
    color: var(--brand-2);
    font-weight: 700;
    min-width: 40px;
}

.toggle-icon {
    color: var(--muted);
    transition: var(--transition);
}

.term-section.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--brand-2);
}

/* Conteúdo do termo */
.term-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.term-section.active .term-content {
    padding: 25px;
    max-height: 2000px;
}

.term-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.term-subheader {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.term-subnumber {
    color: var(--brand-2);
    font-weight: 600;
    min-width: 30px;
}

.term-subheader h4 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
}

.term-content p {
    color: var(--muted);
    line-height: 1.7;
    margin-left: 40px;
}

/* Listas */
.responsibility-list {
    margin-left: 40px;
    list-style: none;
}

.responsibility-list li {
    color: var(--muted);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.responsibility-list i {
    color: var(--danger);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Termos aninhados */
.nested-terms {
    margin-left: 30px;
    margin-top: 15px;
    border-left: 2px solid rgba(12, 176, 240, 0.2);
    padding-left: 15px;
}

.nested-term {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.nested-number {
    color: var(--muted);
    font-weight: 600;
    flex-shrink: 0;
}

.nested-term p {
    margin-left: 0;
    color: var(--muted);
}

/* Lista de proibições */
.prohibited-list {
    margin-left: 40px;
    margin-top: 15px;
}

.prohibited-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 3px solid var(--warning);
    transition: var(--transition);
}

.prohibited-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.prohibited-critical {
    border-left-color: var(--danger);
}

.prohibited-item i {
    color: var(--warning);
    margin-top: 3px;
    flex-shrink: 0;
}

.prohibited-critical i {
    color: var(--danger);
}

.prohibited-item span {
    color: var(--muted);
    line-height: 1.5;
}

/* Penalidades */
.penalties {
    margin-left: 40px;
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.penalty {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 15px;
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: var(--transition);
}

.penalty:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.penalty i {
    font-size: 1.5rem;
}

.penalty:nth-child(1) i {
    color: var(--warning);
}

.penalty:nth-child(2) i {
    color: var(--brand-3);
}

.penalty:nth-child(3) i {
    color: var(--danger);
}

.penalty span {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Seção de aceitação */
.acceptance-section {
    margin: 50px 0;
}

.acceptance-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.acceptance-card h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.acceptance-card h3 i {
    color: var(--success);
}

.confirmation-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
}

.checkbox-container {
    margin-bottom: 20px;
}

.checkbox-container:last-child {
    margin-bottom: 0;
}

.terms-checkbox {
    display: none;
}

.checkbox-container label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    color: var(--text);
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.terms-checkbox:checked + label .checkmark {
    background: var(--success);
    border-color: var(--success);
}

.terms-checkbox:checked + label .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

.checkbox-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkbox-text strong {
    font-weight: 600;
    color: var(--text);
}

.checkbox-note {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Botões de ação */
.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    flex: 1;
    min-height: 52px;
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(12, 176, 240, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.legal-note {
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: rgba(12, 176, 240, 0.05);
    border-radius: var(--radius);
    border-left: 3px solid var(--brand-2);
}

.legal-note i {
    color: var(--brand-2);
    margin-top: 2px;
}

/* Navegação rápida */
.quick-nav {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-nav h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-nav h4 i {
    color: var(--brand-2);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-link {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(12, 176, 240, 0.1);
    color: var(--text);
    border-color: rgba(12, 176, 240, 0.3);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--text), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-info p {
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info i {
    color: var(--brand-2);
    width: 16px;
}

.footer-legal {
    text-align: center;
}

.footer-legal p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.legal-disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    margin-top: 10px;
}

/* Responsividade */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .header-info {
        align-items: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .penalties {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .intro-card,
    .acceptance-card,
    .quick-nav,
    .footer {
        padding: 25px;
    }
    
    .term-header,
    .term-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .term-section.active .term-content {
        padding: 20px;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-info p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .intro-card h2 {
        font-size: 1.3rem;
    }
    
    .acceptance-card h3 {
        font-size: 1.3rem;
    }
    
    .term-header h3 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-card, .term-section, .acceptance-card, .quick-nav, .footer {
    animation: fadeIn 0.6s ease forwards;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-1);
}