/* Base Styles - Updated from qr-safe-assets/colors.ts */
:root {
    /* Primary colors */
    --primary-color: #1E3A8A; /* Trust Blue - Security and reliability */
    --secondary-color: #E5E7EB; /* Light Gray - Neutral background */
    --text-color: #1F2937; /* Charcoal - High-contrast text and UI elements */
    
    /* Status colors */
    --safe-color: #10B981; /* Safe Green - Positive feedback */
    --caution-color: #F97316; /* Alert Orange - Moderate warnings */
    --danger-color: #DC2626; /* Danger Red - Critical alerts */
    
    /* UI colors */
    --background-color: #F9FAFB; 
    --card-background: #F9FAFB;
    --border-color: #D1D5DB;
    --white: #FFFFFF;
    
    /* Logo selection */
    --logo-for-light-bg: url('./images/logo-qr-safe-light-background.svg');
    --logo-for-dark-bg: url('./images/logo-qr-safe-dark-background.svg');
    
    /* Theme color fallback for browsers that don't support meta theme-color */
    --browser-theme-color: var(--primary-color);
    
    /* Other */
    --text-light: #6B7280;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark theme disabled */

/* Legal Pages Styles */
.legal-content {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.legal-content h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.legal-content .last-updated {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
}

.legal-content h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 15px;
    text-align: left;
}

.legal-content h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

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

.legal-content ul li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.legal-content strong {
    font-weight: 600;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    margin: 0 10px;
}

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

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

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

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

/* Header */
header {
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    /* For Firefox and Opera, the JavaScript will add a border-top using --browser-theme-color */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--white);
    margin: 0;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--white);
    font-weight: 500;
}

nav ul li a:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    padding: 100px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Features Section */
.features {
    background-color: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--background-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    background-color: rgba(30, 58, 138, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
}

/* Setup Section */
.setup {
    background-color: var(--background-color);
}

.setup-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    left: 30px;
    top: 70px;
    height: calc(100% - 40px);
    width: 2px;
    background-color: var(--primary-color);
}

.step-number {
    background-color: var(--primary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 30px;
    z-index: 1;
}

.step-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    flex-grow: 1;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step-content ol {
    margin-left: 20px;
}

.step-content li {
    margin-bottom: 5px;
}

/* FAQ Section */
.faq {
    background-color: var(--white);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-header {
    background-color: var(--background-color);
    color: var(--primary-color);
    padding: 20px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: rgba(30, 58, 138, 0.1);
}

.accordion-header:after {
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.accordion-item.active .accordion-header:after {
    content: '-';
}

.accordion-content {
    background-color: var(--white);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 300px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    /* For Firefox and Opera, JavaScript will update the --browser-theme-color variable */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 12px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #e2e8f0;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-image img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin: 0 15px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .btn {
        padding: 10px 20px;
        margin-bottom: 10px;
    }

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

    .step {
        flex-direction: column;
    }

    .step-number {
        margin-bottom: 20px;
        margin-right: 0;
    }

    .step:not(:last-child):after {
        display: none;
    }
}