:root {
    --primary: #009DE0;
    --primary-light: rgba(0, 157, 224, 0.1);
    --text-dark: #1C1C1E;
    --text-gray: #8E8E93;
    --bg-color: #FFFFFF;
    --white: #FFFFFF;
    --border: #E5E5EA;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 600px; /* Mobile-app feel on desktop */
    margin: 0 auto;
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 25px rgba(0,0,0,0.05);
}

/* Header */
.app-header {
    padding: 20px;
    text-align: center;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
}

.app-header h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

.tab-link {
    flex: 1;
    padding: 16px 10px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-link:hover {
    color: var(--primary);
    background-color: #fafafa;
}

.tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: var(--primary-light);
}

/* Main Content */
main {
    flex: 1;
    padding: 24px;
    background-color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

/* Typography for Legal Text */
.legal-text h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.legal-text h3 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

.legal-text p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    text-align: justify;
}

.legal-text ul {
    padding-left: 20px;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
}

.placeholder-text {
    font-style: italic;
    color: var(--primary);
    background: var(--primary-light);
    padding: 10px;
    border-radius: 6px;
    text-align: center !important;
}

/* Footer */
.app-footer {
    padding: 40px 20px;
    background-color: #FAFAFA;
    text-align: center;
    border-top: 1px solid var(--border);
}

.app-footer h3 {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.app-footer p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Contact Buttons Group */
.contact-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 280px;
}

.contact-button:hover {
    transform: translateY(-1px);
}

.whatsapp-button {
    background-color: #25D366;
    color: var(--white);
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.whatsapp-button:hover {
    background-color: #22bf5b;
    box-shadow: 0 6px 8px rgba(37, 211, 102, 0.3);
}

.email-button {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-gray);
}

.email-button:hover {
    background-color: #F2F2F7;
    color: var(--text-dark);
}

@media (min-width: 480px) {
    .contact-buttons-container {
        flex-direction: row;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Desktop Enhancements */
@media (min-width: 640px) {
    .app-container {
        margin: 40px auto;
        border-radius: 16px;
        min-height: calc(100vh - 80px);
        overflow: hidden; /* For rounded corners */
    }
    
    body {
        padding-bottom: 40px; /* Space for bottom margin */
    }
}
