/* Import Google Fonts - matching Flutter app fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Root Variables - matching Flutter app colors */
:root {
    --background-color: #fff1fa;
    --primary-color: #ed239c;
    --secondary-color: #03DAC6;
    --surface-color: #FFFFFF;
    --error-color: #B00020;
    --accent-color: #F8C3E8;
    --success-color: #8CE6AA;
    --primary-text: #212121;
    --secondary-text: #757575;
    --border-color: #E0E0E0;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--primary-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Headings use Playfair Display font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.4;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

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

/* Navigation Bar */
.navbar {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--primary-color);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--primary-text);
    font-weight: 400;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-text);
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--secondary-text);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.feature p {
    color: var(--secondary-text);
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1976D2;
    color: white;
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-text);
}

.btn-secondary:hover {
    background-color: #F5A8D8;
    color: var(--primary-text);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Legal Links Section */
.legal-links {
    background-color: var(--surface-color);
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 12px;
}

.legal-links h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.legal-links p {
    text-align: center;
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

.legal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Document Sections */
.document-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.document-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.effective-date {
    color: var(--secondary-text);
    font-style: italic;
}

.document-section {
    background-color: var(--surface-color);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.document-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.document-section h3 {
    color: var(--primary-text);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.document-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.document-section li {
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.document-section p {
    margin-bottom: 1rem;
    color: var(--primary-text);
}

/* Highlight Box */
.highlight {
    background-color: var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.highlight p {
    margin: 0;
    color: var(--primary-text);
}

/* Contact Info */
.contact-info {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
}

/* Support Page Specific */
.support-section {
    background-color: var(--surface-color);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.faq-question {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--primary-text);
    margin-left: 1rem;
}

/* Account Management Page */
.account-section {
    background-color: var(--surface-color);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.warning-box {
    background-color: #FFF3CD;
    border-left: 4px solid #FFC107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.danger-box {
    background-color: #F8D7DA;
    border-left: 4px solid var(--error-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.success-box {
    background-color: #D4EDDA;
    border-left: 4px solid var(--success-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

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

.footer p {
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface-color);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .legal-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .document-header h1 {
        font-size: 1.75rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-logo {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .document-header h1 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .hamburger {
        display: none;
    }

    body {
        background-color: white;
    }

    .document-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
