/* =============================================== */
/* ---             CONFIGURAÇÕES GERAIS          --- */
/* =============================================== */

*, *::before, *::after { box-sizing: border-box; }
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --secondary: #00a9a5;
    --accent: #00c2bd;
    --turquoise: #00a8a0;
    --light: #f5f7fa;
    --white: #ffffff;
    --gray: #e5e9f0;
    --text-light: #64748b;
    --dark: #0f1e33;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-top: 0;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* =============================================== */
/* ---             HERO SECTION                --- */
/* =============================================== */

.terms-hero {
    padding: 180px 0 80px; /* Increased top padding to avoid header overlap */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--white);
    position: relative;
}

.terms-hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 10px;
}

.terms-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* =============================================== */
/* ---             CONTENT SECTION             --- */
/* =============================================== */

.terms-content-section {
    padding: 0 0 100px;
    margin-top: -40px;
}

.terms-card {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 60px;
    position: relative;
}

.terms-intro {
    font-size: 1.1rem;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.term-item {
    display: flex;
    gap: 30px;
}

.term-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 169, 165, 0.1);
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.term-content {
    flex: 1;
}

.term-content h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.term-content p, 
.term-content li {
    color: var(--text-light);
    margin-bottom: 10px;
}

.term-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.term-content li {
    margin-bottom: 8px;
}

/* Contact Box Style */
.contact-details-box {
    background-color: var(--light);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
    margin-top: 20px;
}

.contact-details-box p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details-box i {
    color: var(--secondary);
    width: 20px;
}

/* Footer Button */
.terms-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--gray);
    text-align: center;
}

.button-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.button-home:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 169, 165, 0.3);
}

/* =============================================== */
/* ---             MEDIA QUERIES               --- */
/* =============================================== */

@media (max-width: 768px) {
    .terms-hero {
        padding: 140px 0 60px;
    }

    .terms-card {
        padding: 30px 20px;
    }

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

    .term-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
