:root {
    --tg-blue: #2481cc;
    --tg-bg: #ffffff;
    --tg-text: #222;
    --tg-secondary-text: #707579;
    --tg-button-hover: #1e6fa3;
    --tg-button-active: #1a5c8a;
    --tg-border-radius: 12px;
    --tg-section-bg: #f5f5f5; /* Light grey for section differentiation */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

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

body {
    font-family: var(--font-family);
    background-color: var(--tg-bg);
    color: var(--tg-text);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    line-height: 1.5;
}

/* Home page centering */
body.home-page {
    align-items: center;
}

/* Scrollbar styling for webkit */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 600px; /* Increased slightly for content pages */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header / Hero specific */
.hero {
    margin-bottom: 40px;
    margin-top: 40px;
}

.icon-placeholder {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--tg-text);
}

.subtitle {
    font-size: 18px;
    color: var(--tg-secondary-text);
    margin-bottom: 12px;
    font-weight: 400;
}

.description {
    font-size: 16px;
    color: var(--tg-secondary-text);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 400px;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--tg-blue);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: var(--tg-border-radius);
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    max-width: 300px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    border: none;
    outline: none;
    margin-bottom: 16px;
}

.cta-button:hover {
    background-color: var(--tg-button-hover);
}

.cta-button:active {
    background-color: var(--tg-button-active);
    transform: scale(0.98);
}

/* Links */
.secondary-link {
    font-size: 15px;
    color: var(--tg-blue);
    text-decoration: none;
    transition: opacity 0.2s ease;
    margin-top: 8px;
    display: inline-block;
}

.secondary-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Cards & Sections */
.section {
    width: 100%;
    margin-bottom: 40px;
    text-align: left;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--tg-text);
    padding-left: 8px; /* Visual alignment */
}

.card {
    background: #f4f4f5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.card-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-text {
    font-size: 14px;
    color: var(--tg-secondary-text);
    line-height: 1.5;
}

/* FAQ / Accordion */
.faq-item {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 16px 8px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--tg-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 8px 16px 8px;
    font-size: 14px;
    color: var(--tg-secondary-text);
    line-height: 1.5;
    display: none; /* Hidden by default */
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    font-size: 20px;
    color: var(--tg-blue);
    transition: transform 0.2s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Privacy & Text Pages */
.privacy-content {
    text-align: left;
    width: 100%;
}

.privacy-content h2 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--tg-text);
}

.privacy-content p {
    font-size: 15px;
    color: var(--tg-text);
    margin-bottom: 16px;
    line-height: 1.6;
}

.privacy-content ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.privacy-content li {
    font-size: 15px;
    color: var(--tg-text);
    margin-bottom: 8px;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .cta-button {
        width: 100%; 
        max-width: 100%;
    }
}
