/* Global Styles */
:root {
    --bg-main: #F8F9FA;
    /* Pearl White (Clean & Professional) */
    --text-dark: #0A192F;
    /* Deep Navy (Corporate Trust) */
    --accent: #2563EB;
    /* True Blue */
    --accent-hover: #1D4ED8;
    /* Deeper Blue for hover */
    --text-light: #ffffff;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(10, 25, 47, 0.05);
    --shadow-md: 0 4px 6px rgba(10, 25, 47, 0.07);
    --shadow-lg: 0 10px 25px rgba(10, 25, 47, 0.1);

    /* Gradients */
    --gradient-dark: linear-gradient(135deg, #0A192F 0%, #112240 100%);
    --gradient-accent: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header & Nav */
header {
    padding: 1.2rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.8rem 8%;
    box-shadow: var(--shadow-md);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

nav a:hover::after {
    width: 100%;
}

/* Language Switcher Text-based Minimalist */
.lang-switcher {
    display: flex;
    gap: 15px;
    align-items: center;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
    margin-left: 10px;
}

.lang-btn {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    color: #A0AEC0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border: none;
    padding: 0;
}

.lang-btn:hover {
    color: var(--accent);
}

.lang-btn.active {
    color: var(--text-dark);
    font-weight: 700;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        gap: 20px;
        align-items: flex-start;
    }

    nav.active {
        right: 0;
    }

    nav a {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 20px;
    }
}

/* Landing Page Styles (Index) */
.hero {
    padding: 160px 8% 120px;
    text-align: center;
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.8rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 900;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    color: var(--accent);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--text-dark);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-secondary:hover {
    background: var(--bg-main);
    color: var(--accent);
    border-color: var(--accent);
}

.stats-section {
    padding: 80px 8%;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

.section {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.card {
    padding: 45px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

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

.card p {
    color: #666;
    line-height: 1.8;
}

.services-section {
    background: var(--text-dark);
    color: white;
}

.services-section .section-title,
.services-section .section-subtitle,
.services-section .card h3 {
    color: white;
    -webkit-text-fill-color: white;
}

.services-section .card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.services-section .card-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.services-section .card p {
    color: #A0AEC0;
}

.testimonials-section {
    background: var(--bg-main);
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--border-color);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--accent);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.author-info p {
    color: #888;
    font-size: 0.9rem;
}

.faq-section {
    background: #f9fafb;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 300px;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

.newsletter-section {
    background: var(--gradient-dark);
    color: white;
    text-align: center;
}

.newsletter-section .section-title {
    color: white;
}

.newsletter-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    gap: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

.newsletter-btn {
    padding: 18px 40px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-btn:hover {
    transform: scale(1.05);
}

.contact-section {
    background: var(--gradient-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    color: white;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-form {
    background: white;
    padding: 45px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Footer (Common) */
footer {
    background: #0a0a0a;
    color: #888;
    padding: 60px 8% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

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

    nav {
        flex-direction: column;
        gap: 15px;
    }

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

    .newsletter-form {
        flex-direction: column;
    }
}

/* Legal Page Styles (Privacy & Terms) */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #667eea;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    padding: 12px 24px;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
}

.back-link:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.content-card {
    background: white;
    padding: 60px;
    border-radius: 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.last-updated {
    color: #888;
    font-size: 0.95rem;
    font-style: italic;
}


/* Scoped styles for legal content to avoid conflicts */
.content-card h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 40px 0 20px;
    padding-left: 20px;
    border-left: 5px solid transparent;
    border-image: var(--gradient-accent) 1;
}

.content-card h3 {
    font-size: 1.4rem;
    color: #444;
    margin: 30px 0 15px;
}

.content-card p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #555;
}

.content-card ul,
.content-card ol {
    margin: 20px 0 20px 40px;
}

.content-card li {
    margin-bottom: 12px;
    color: #555;
    font-size: 1.05rem;
}

.content-card strong {
    color: var(--text-dark);
    font-weight: 700;
}

.highlight-box {
    background: var(--bg-main);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.contact-box {
    background: var(--bg-main);
    color: var(--text-dark);
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    margin-top: 50px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.contact-box h3 {
    color: var(--text-dark);
    margin-top: 0;
    font-size: 1.8rem;
}

.contact-box a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.contact-box a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 60px 0;
}

.info-box {
    background: var(--bg-main);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.warning-box {
    background: var(--bg-main);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid #F59E0B;
    box-shadow: var(--shadow-sm);
}

.company-info {
    background: var(--bg-main);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.company-info h3 {
    color: var(--text-dark);
    margin-top: 0;
}

.company-info p {
    color: #555;
    margin-bottom: 10px;
}

/* Social Icons (SVGs) */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:hover svg {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .content-card {
        padding: 30px 25px;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .content-card h2 {
        font-size: 1.6rem;
    }
}

/* --- MULTI-LANGUAGE SUPPORT (i18n) --- */
/* Hide all translated elements by default inside body */
body span[lang],
body p[lang],
body h1[lang],
body h2[lang],
body h3[lang],
body h4[lang],
body h5[lang],
body h6[lang],
body div[lang],
body strong[lang],
body a[lang],
body label[lang],
body button[lang] {
    display: none !important;
}

/* Show the active language based on the body class */
body.lang-es [lang="es"] {
    display: block !important;
}

body.lang-en [lang="en"] {
    display: block !important;
}

body.lang-fr [lang="fr"] {
    display: block !important;
}

body.lang-de [lang="de"] {
    display: block !important;
}

body.lang-it [lang="it"] {
    display: block !important;
}

/* Set proper display types for inline elements so they don't break layout */
body.lang-es span[lang="es"],
body.lang-es a[lang="es"],
body.lang-es strong[lang="es"],
body.lang-en span[lang="en"],
body.lang-en a[lang="en"],
body.lang-en strong[lang="en"],
body.lang-fr span[lang="fr"],
body.lang-fr a[lang="fr"],
body.lang-fr strong[lang="fr"],
body.lang-de span[lang="de"],
body.lang-de a[lang="de"],
body.lang-de strong[lang="de"],
body.lang-it span[lang="it"],
body.lang-it a[lang="it"],
body.lang-it strong[lang="it"] {
    display: inline !important;
}

/* --- Styles extracted from index.html --- */
.lextz-form-container {
    max-width: 400px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.lextz-form-group {
    margin-bottom: 15px;
    text-align: left;
}

.lextz-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: white;
}

.lextz-form-group input[type="text"],
.lextz-form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.lextz-btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #2563EB;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.lextz-btn-submit:hover {
    background-color: #1D4ED8;
}

.lextz-btn-submit:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
}

.lextz-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    display: none;
    text-align: center;
}

.lextz-success {
    background-color: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.lextz-error {
    background-color: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

/* --- Styles extracted from guide.html --- */
body.page-guide {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #F9F9FB;
    background-image: radial-gradient(circle at top right, rgba(74, 85, 104, 0.05), transparent 400px), radial-gradient(circle at bottom left, rgba(74, 85, 104, 0.05), transparent 400px);
    min-height: 100vh;
}

body.page-guide .section {
    display: flex !important;
    opacity: 1 !important;
}

.guide-container {
    max-width: 700px;
    margin: 80px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 80px 60px;
    text-align: center;
    border-top: 6px solid #0A192F;
    position: relative;
    overflow: hidden;
}

.guide-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 25, 47, 0.2), transparent);
}

.guide-icon {
    font-size: 72px;
    margin-bottom: 25px;
    animation: floatIcon 3s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.1));
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.guide-title {
    color: #0A192F;
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
}

.guide-subtitle {
    color: #2563EB;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 50px;
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.lextz-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 30px;
    background-color: #0A192F;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px rgba(10, 25, 47, 0.1);
}

.lextz-btn-download:hover {
    background-color: #112240;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 25, 47, 0.2);
}

.lextz-btn-download:disabled {
    background-color: #E2E8F0;
    color: #A0AEC0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-guide .lextz-message {
    padding: 18px;
    border-radius: 8px;
    margin-top: 30px;
    display: none;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-guide .lextz-success {
    background-color: #F0FDF4;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.page-guide .lextz-error {
    background-color: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.page-guide .lextz-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.page-guide .lextz-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4A5568;
    font-size: 14px;
}

.page-guide .lextz-form-group input[type="text"],
.page-guide .lextz-form-group input[type="email"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #CBD5E0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    color: #2D3748;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #F8FAFC;
}

.page-guide .lextz-form-group input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #FFFFFF;
}

.lextz-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.lextz-checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
}

.lextz-checkbox-group label {
    font-weight: 400;
    font-size: 13.5px;
    color: #718096;
    text-align: left;
    line-height: 1.5;
    cursor: pointer;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin-right: 15px;
    display: none;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Mobile specific overrides for TOC Sidebar --- */
@media (max-width: 768px) {
    .toc-sidebar nav {
        position: static;
        width: 100%;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        flex-direction: column;
        gap: 10px;
        display: flex;
    }
    
    .toc-sidebar nav.active {
        right: auto;
    }

    .toc-sidebar nav a {
        width: auto;
        padding: 8px 0;
        border-bottom: none;
        font-size: 0.95rem;
    }
}