/* src/css/termos.css */

:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --secondary-color: #3498db;
    --dark-color: #2E7D32;
    --text-color: #34495e;
    --text-light: #7f8c8d;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 1.6;
    margin-top: 4px;
}

.logo h2 {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: -10px;
    line-height: 1.3;
}

.logo img {
    height: 60px;
    padding-right: 5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.login-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}

.nav-link.sino::after {
    display: none;
}

.nav-link.login-button:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Remover sublinhado do botão login */
.nav-link.no-underline::after {
    display: none;
}

.nav-link.exit-button {
    background-color: rgb(230, 30, 30);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}

.nav-link.exit-button:hover {
    background-color: rgb(200, 30, 30);
    color: var(--white);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}


.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Container Principal */
.container {
    padding-top: 120px;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    min-height: calc(100vh - 120px);
    padding-bottom: 60px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 30px;
}

.page-header h2 {
    color: var(--dark-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-style: italic;
}

/* Conteúdo Legal */
.legal-content {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}

.legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h3 i {
    font-size: 1.1rem;
    width: 24px;
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

.legal-section strong {
    color: var(--dark-color);
    font-weight: 600;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-section li {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
    padding-left: 10px;
}

.legal-section li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -10px;
}

/* Seção de Aceitação */
.acceptance-section {
    margin-top: 50px;
    text-align: center;
}

.acceptance-box {
    background: linear-gradient(135deg, var(--light-gray), #f8f9fa);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 30px;
    display: inline-block;
    max-width: 500px;
}

.acceptance-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.acceptance-box h4 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.acceptance-box p {
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    position: absolute;
    right: 20px;
    top: 15px;
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-content h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: center;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    justify-content: center;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.modal-content a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

/* Responsividade - Menu Hamburguer */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 16px 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 12px 0;
        width: 100%;
    }
    
    .nav-link.login-button,
    .nav-link.exit-button {
        margin: 10px auto;
        width: 80%;
        max-width: 200px;
    }
}


/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding-top: 100px;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 40px;
    }
    
    .legal-content {
        padding: 25px 20px;
    }
    
    .legal-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .page-header h2 {
        font-size: 1.8rem;
    }
    
    .acceptance-box {
        padding: 20px;
        margin: 0 10px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-top: 90px;
        padding-bottom: 30px;
    }
    
    .legal-content {
        padding: 20px 15px;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .page-header {
        padding-top: 120px;
    }

    .page-header h2 {
        font-size: 1.6rem;
    }
    
    .acceptance-box {
        padding: 15px;
    }
    
    .acceptance-box i {
        font-size: 2rem;
    }
    
    .acceptance-box h4 {
        font-size: 1.1rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section {
    animation: fadeInUp 0.5s ease;
}