/* Reset and Base Styles - Mobile First */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066CC;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-light: #e5e7eb;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
    --max-width: 1200px;
    --border-radius: 12px;
    --mobile-padding: 16px;
    --tablet-padding: 24px;
    --desktop-padding: 32px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip Navigation */
.skip-nav {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 8px 12px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.skip-nav:focus {
    left: 6px;
    top: 6px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--mobile-padding);
}

/* Navigation - Mobile First */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    padding: 0 var(--mobile-padding);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.app-name {
    white-space: nowrap;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Desktop Navigation Links */
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: var(--mobile-padding);
    gap: var(--mobile-padding);
}

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

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

/* Hero Section - Mobile First */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #0052a3 0%, #003d80 100%);
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    display: block;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.hero-subtitle-platforms {
    white-space: nowrap;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.download-section {
    margin-top: 2rem;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    background: transparent;
    text-decoration: none;
    line-height: 0;
    margin: 5px 0;
}

.app-store-badge img {
    display: block;
    width: 180px;
    height: 60px;
    max-width: none;
}

.download-note {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}


/* Footer - Mobile First */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-padding);
    margin-bottom: var(--mobile-padding);
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #ccc;
}

.footer-section p {
    color: #999;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
    color: #666;
    border-top: 1px solid #333;
    padding-top: var(--mobile-padding);
}

.copyright p {
    margin: 0;
}

.copyright p + p {
    margin-top: 0.35rem;
}

.copyright .content-rights {
    margin-top: 0.75rem;
}

/* Legal Content Pages - Mobile First */
.legal-content, .support-content {
    padding: 40px 0;
    min-height: calc(100vh - 160px);
}

.legal-content .container {
    max-width: 920px;
}

.legal-language {
    scroll-margin-top: 84px;
}

.legal-language + .legal-language {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.language-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.language-links a {
    display: inline-flex;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.language-links a:hover,
.language-links a:focus-visible {
    border-color: var(--primary-blue);
    background: var(--bg-light);
}

.legal-content h1, .support-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
    font-size: 0.9rem;
}

.legal-section, .support-section {
    margin-bottom: 2.5rem;
}

.legal-section h2, .support-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary-blue);
    line-height: 1.3;
}

.legal-section h3, .support-section h3 {
    font-size: 1.2rem;
    margin: 1.25rem 0 0.75rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.legal-section p, .support-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.legal-section a,
.support-section a {
    color: var(--primary-blue);
    text-underline-offset: 0.15em;
}

.legal-section ul, .support-section ul {
    margin-left: var(--mobile-padding);
    margin-bottom: 1rem;
}

.legal-section ul li, .support-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.legal-notice {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    border-left: 4px solid var(--primary-blue);
}

/* Support Page Specific */
.support-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contact-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 2rem 0;
}

.contact-method {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-method h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-method a {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-light);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.issue-card {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.issue-card h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.issue-card ol {
    margin-left: 20px;
}

.issue-card ol li {
    margin-bottom: 0.5rem;
}

.response-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.response-time-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
}

.response-time-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.response-time-card .time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0.5rem 0;
}

.response-time-card .note {
    font-size: 0.85rem;
    color: var(--text-light);
}

.app-info {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.app-info table {
    width: 100%;
    border-collapse: collapse;
}

.app-info td {
    padding: 10px;
    border-bottom: 1px solid var(--border-light);
}

.app-info td:first-child {
    font-weight: 600;
    color: var(--text-light);
    width: 150px;
}

.support-cta {
    text-align: center;
    padding: 60px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-top: 3rem;
}

.support-cta h2 {
    margin-bottom: 1rem;
}

.support-cta p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-blue);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

/* Footer variations for legal pages */
.footer-links {
    display: flex;
    gap: 30px;
    margin-top: 2rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-links a.active {
    color: white;
}

/* Mobile First Responsive Design */

/* Tablet Styles (min-width: 768px) */
@media (min-width: 768px) {
    :root {
        --mobile-padding: var(--tablet-padding);
    }

    .container {
        padding: 0 var(--tablet-padding);
    }

    .navbar .container {
        padding: 0 var(--tablet-padding);
    }

    /* Hero Section */
    .hero {
        padding: 80px 0;
    }

    .hero-icon {
        width: 112px;
        height: 112px;
        margin-bottom: 2rem;
    }

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

    .hero-subtitle {
        font-size: 1.4rem;
    }

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

    /* Footer */
    .footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
        margin-bottom: 30px;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .copyright {
        text-align: left;
        border-top: none;
        padding-top: 0;
        margin-top: 2rem;
    }
}

/* Desktop Styles (min-width: 1024px) */
@media (min-width: 1024px) {
    :root {
        --mobile-padding: var(--desktop-padding);
    }

    .container {
        padding: 0 var(--desktop-padding);
    }

    .navbar .container {
        padding: 0 var(--desktop-padding);
    }

    /* Navigation - Desktop */
    .mobile-menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        border-bottom: none;
        padding: 0;
        gap: 24px;
        margin-left: auto;
    }

    .nav-links a {
        padding: 0;
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0;
    }

    .hero-icon {
        width: 128px;
        height: 128px;
    }

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

    .hero-subtitle {
        font-size: 1.6rem;
    }

    /* Legal Pages */
    .legal-content, .support-content {
        padding: 60px 0;
    }

    .legal-content h1, .support-content h1 {
        font-size: 2.5rem;
    }

    .legal-section h2, .support-section h2 {
        font-size: 1.8rem;
    }

    .legal-section h3, .support-section h3 {
        font-size: 1.3rem;
    }
}

/* Large Desktop Styles (min-width: 1200px) */
@media (min-width: 1200px) {
    :root {
        --max-width: 1400px;
    }

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