/* CSS Custom Properties */
:root {
    --primary-color: 216 68% 57%; /* #3b82f6 */
    --secondary-color: 262 52% 46%; /* #7c3aed */
    --accent-color: 346 77% 49%; /* #dc2626 */
    --success-color: 142 76% 36%; /* #16a34a */
    --warning-color: 38 92% 50%; /* #ea580c */
    --error-color: 0 84% 60%; /* #ef4444 */
    
    --background: 210 11% 98%; /* #f8fafc */
    --surface: 0 0% 100%; /* #ffffff */
    --surface-alt: 210 17% 96%; /* #f1f5f9 */
    
    --text-primary: 215 25% 27%; /* #334155 */
    --text-secondary: 215 16% 47%; /* #64748b */
    --text-muted: 215 14% 71%; /* #94a3b8 */
    
    --border-color: 214 13% 93%; /* #e2e8f0 */
    --border-light: 220 13% 91%; /* #e2e8f0 */
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    --container-max-width: 1200px;
    --header-height: 60px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

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

a {
    text-decoration: none;
    color: hsl(var(--primary-color));
    transition: var(--transition-fast);
}

a:hover {
    color: hsl(var(--secondary-color));
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background-color: hsl(var(--surface-alt));
    color: hsl(var(--text-primary));
    border: 1px solid hsl(var(--border-color));
}

.btn-secondary:hover {
    background-color: hsl(var(--border-light));
    color: hsl(var(--text-primary));
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: hsla(var(--surface), 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--border-color));
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
}

.nav-brand i {
    color: hsl(var(--primary-color));
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: hsl(var(--text-secondary));
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text-primary));
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--surface-alt)));
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-title i {
    color: hsl(var(--primary-color));
    -webkit-text-fill-color: hsl(var(--primary-color));
    margin-right: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.section-header h2 i {
    color: hsl(var(--primary-color));
    margin-right: 0.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: hsl(var(--text-secondary));
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background-color: hsl(var(--surface));
}

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

.about-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.1), hsl(var(--secondary-color) / 0.1));
    border-radius: 50%;
    font-size: 2rem;
    color: hsl(var(--primary-color));
}

.about-item h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: hsl(var(--surface));
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid hsl(var(--border-color));
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
    border-radius: var(--border-radius-lg);
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--text-secondary));
}

.service-card li i {
    color: hsl(var(--success-color));
}

/* Process Section */
.process-section {
    background-color: hsl(var(--surface));
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.step-content h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.step-content h3 i {
    color: hsl(var(--primary-color));
    margin-right: 0.5rem;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid hsl(var(--primary-color));
}

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

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content i {
    color: hsl(var(--warning-color));
    margin-right: 0.25rem;
}

.testimonial-content p {
    font-style: italic;
    margin-top: 1rem;
    color: hsl(var(--text-primary));
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author i {
    font-size: 3rem;
    color: hsl(var(--primary-color));
}

.testimonial-author h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: hsl(var(--text-secondary));
    font-size: 0.875rem;
}

/* Blog Section */
.blog-section {
    background-color: hsl(var(--surface));
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: hsl(var(--background));
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
}

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

.blog-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.1), hsl(var(--secondary-color) / 0.1));
    border-radius: var(--border-radius);
    color: hsl(var(--primary-color));
    font-size: 1.5rem;
    flex-shrink: 0;
}

.blog-content h3 {
    margin-bottom: 0.75rem;
}

.blog-content h3 a {
    color: hsl(var(--text-primary));
    transition: var(--transition);
}

.blog-content h3 a:hover {
    color: hsl(var(--primary-color));
}

.blog-content p {
    margin-bottom: 1rem;
    font-size: 0.925rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-text h2 i {
    margin-right: 0.5rem;
}

.newsletter-text p {
    color: hsla(0, 0%, 100%, 0.9);
    font-size: 1.125rem;
}

.newsletter-form {
    max-width: 500px;
}

.form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 3px hsla(var(--primary-color), 0.3);
}

.form-consent {
    font-size: 0.875rem;
}

.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    color: hsla(0, 0%, 100%, 0.9);
}

.form-consent input {
    margin-top: 0.25rem;
}

.form-consent a {
    color: white;
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: hsl(var(--text-primary));
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section h3 i {
    color: hsl(var(--primary-color));
    margin-right: 0.5rem;
}

.footer-section p {
    color: hsl(var(--text-muted));
    margin-bottom: 1.5rem;
}

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

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

.footer-section a {
    color: hsl(var(--text-muted));
    transition: var(--transition);
}

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

.footer-section a i {
    margin-right: 0.5rem;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--primary-color) / 0.1);
    border-radius: 50%;
    color: hsl(var(--primary-color));
    transition: var(--transition);
}

.social-links a:hover {
    background-color: hsl(var(--primary-color));
    color: white;
    transform: translateY(-2px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--text-muted));
}

.contact-info i {
    color: hsl(var(--primary-color));
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid hsl(var(--border-color));
    padding-top: 2rem;
    text-align: center;
    color: hsl(var(--text-muted));
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--surface));
    border-top: 1px solid hsl(var(--border-color));
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-text i {
    color: hsl(var(--warning-color));
    font-size: 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: hsl(var(--surface));
    border-radius: var(--border-radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border-color));
}

.cookie-modal-header h3 {
    color: hsl(var(--text-primary));
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: hsl(var(--text-secondary));
    transition: var(--transition);
}

.close-btn:hover {
    color: hsl(var(--text-primary));
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 2rem;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cookie-category h4 {
    color: hsl(var(--text-primary));
}

.cookie-category p {
    color: hsl(var(--text-secondary));
    font-size: 0.925rem;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsl(var(--border-color));
    transition: var(--transition);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: hsl(var(--primary-color));
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid hsl(var(--border-color));
    text-align: right;
}

/* Form Styles */
.form-section {
    padding: 5rem 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: hsl(var(--surface));
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--text-primary));
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsl(var(--primary-color) / 0.1);
}

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

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 0.25rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: hsl(var(--surface));
        border-top: 1px solid hsl(var(--border-color));
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .about-grid,
    .services-grid,
    .process-steps,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .cookie-modal {
        padding: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .blog-card {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-meta {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-consent,
    .cookie-modal,
    .newsletter-section,
    .hero-buttons {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .hero-title {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid hsl(var(--primary-color));
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: 0 0% 0%;
        --secondary-color: 0 0% 0%;
        --text-primary: 0 0% 0%;
        --text-secondary: 0 0% 0%;
        --background: 0 0% 100%;
        --surface: 0 0% 100%;
        --border-color: 0 0% 0%;
    }
}

/* About page specific styles */
.story-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background-color: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.1), hsl(var(--secondary-color) / 0.1));
    border-radius: 50%;
    color: hsl(var(--primary-color));
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.stat-label {
    color: hsl(var(--text-secondary));
    font-size: 0.925rem;
}

@media (max-width: 768px) {
    .story-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .story-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Modern Contact Form Styles */
.modern-form-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

.form-visual {
    position: relative;
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.1), hsl(var(--secondary-color) / 0.1));
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    overflow: hidden;
}

.form-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.2), hsl(var(--secondary-color) / 0.2));
}

.circle-1 {
    width: 120px;
    height: 120px;
    top: -60px;
    right: -60px;
}

.circle-2 {
    width: 80px;
    height: 80px;
    bottom: -40px;
    left: -40px;
}

.circle-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
}

.form-benefits {
    position: relative;
    z-index: 1;
}

.form-benefits h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.form-benefits h3 i {
    color: hsl(var(--primary-color));
    margin-right: 0.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: hsl(var(--text-secondary));
}

.benefit-item i {
    color: hsl(var(--success-color));
    margin-right: 1rem;
    font-size: 1.125rem;
}

.modern-form-wrapper {
    background-color: hsl(var(--surface));
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.modern-contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.input-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--primary-color) / 0.1);
    border-radius: var(--border-radius-md);
    color: hsl(var(--primary-color));
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 0 0.5rem 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: hsl(var(--text-primary));
    font-size: 1rem;
    outline: none;
}

.input-wrapper label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: hsl(var(--text-secondary));
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label,
.input-wrapper input:valid + label {
    top: 0;
    font-size: 0.875rem;
    color: hsl(var(--primary-color));
}

.input-underline {
    height: 2px;
    background-color: hsl(var(--border-color));
    position: relative;
    margin-top: 0.5rem;
}

.input-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
    transform: scaleX(0);
    transition: var(--transition);
}

.input-wrapper input:focus ~ .input-underline::after {
    transform: scaleX(1);
}

.select-wrapper {
    flex: 1;
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 1rem 0 0.5rem 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: hsl(var(--text-primary));
    font-size: 1rem;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 1rem;
    color: hsl(var(--text-secondary));
    pointer-events: none;
}

.textarea-wrapper {
    flex: 1;
    position: relative;
}

.textarea-wrapper textarea {
    width: 100%;
    padding: 1rem 0 0.5rem 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: hsl(var(--text-primary));
    font-size: 1rem;
    outline: none;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.textarea-wrapper label {
    position: absolute;
    top: 0;
    left: 0;
    color: hsl(var(--primary-color));
    font-size: 0.875rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid hsl(var(--border-color));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: hsl(var(--primary-color));
    border-color: hsl(var(--primary-color));
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    font-size: 0.75rem;
}

.custom-checkbox label {
    color: hsl(var(--text-secondary));
    cursor: pointer;
    line-height: 1.5;
}

.custom-checkbox label a {
    color: hsl(var(--primary-color));
    text-decoration: none;
}

.custom-checkbox label a:hover {
    text-decoration: underline;
}

.modern-submit-btn {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.modern-submit-btn:active {
    transform: translateY(0);
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loader {
    display: none;
}

.modern-submit-btn.loading .btn-text {
    display: none;
}

.modern-submit-btn.loading .btn-loader {
    display: block;
}

@media (max-width: 768px) {
    .modern-form-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-visual,
    .modern-form-wrapper {
        padding: 2rem;
    }
}

/* Premium Contact Form Styles */
.premium-contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-intro {
    position: relative;
}

.intro-visual {
    position: relative;
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.1), hsl(var(--secondary-color) / 0.1));
    border-radius: var(--border-radius-xl);
    padding: 3rem 2rem;
    overflow: hidden;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.2), hsl(var(--secondary-color) / 0.2));
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.intro-content h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.intro-content h3 i {
    color: hsl(var(--primary-color));
    margin-right: 0.5rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: hsla(var(--surface), 0.8);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(5px);
    background-color: hsl(var(--surface));
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item span {
    color: hsl(var(--text-secondary));
    font-weight: 500;
}

.premium-form-card {
    background-color: hsl(var(--surface));
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid hsl(var(--border-color) / 0.5);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h3 {
    color: hsl(var(--text-primary));
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: hsl(var(--text-secondary));
    font-size: 1.1rem;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.field-group {
    position: relative;
}

.floating-label {
    position: relative;
    display: flex;
    align-items: center;
}

.floating-label input {
    width: 100%;
    padding: 1.2rem 1rem 1.2rem 3rem;
    border: 2px solid hsl(var(--border-color));
    border-radius: var(--border-radius-lg);
    background-color: hsl(var(--background));
    color: hsl(var(--text-primary));
    font-size: 1rem;
    transition: var(--transition);
}

.floating-label input:focus {
    border-color: hsl(var(--primary-color));
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--primary-color) / 0.1);
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 2.5rem;
    font-size: 0.875rem;
    color: hsl(var(--primary-color));
    background-color: hsl(var(--surface));
    padding: 0 0.5rem;
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    color: hsl(var(--text-secondary));
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
    background-color: transparent;
}

.field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--text-secondary));
    font-size: 1.1rem;
    z-index: 1;
}

.floating-label input:focus ~ .field-icon {
    color: hsl(var(--primary-color));
}

.select-group {
    position: relative;
}

.select-group select {
    width: 100%;
    padding: 1.2rem 3rem 1.2rem 3rem;
    border: 2px solid hsl(var(--border-color));
    border-radius: var(--border-radius-lg);
    background-color: hsl(var(--background));
    color: hsl(var(--text-primary));
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
}

.select-group select:focus {
    border-color: hsl(var(--primary-color));
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--primary-color) / 0.1);
}

.select-group::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--text-secondary));
    pointer-events: none;
}

.select-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--text-secondary));
    font-size: 1.1rem;
}

.textarea-group {
    position: relative;
}

.textarea-group textarea {
    width: 100%;
    padding: 1.2rem 1rem 1.2rem 3rem;
    border: 2px solid hsl(var(--border-color));
    border-radius: var(--border-radius-lg);
    background-color: hsl(var(--background));
    color: hsl(var(--text-primary));
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: var(--transition);
}

.textarea-group textarea:focus {
    border-color: hsl(var(--primary-color));
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--primary-color) / 0.1);
}

.textarea-icon {
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    color: hsl(var(--text-secondary));
    font-size: 1.1rem;
}

.checkbox-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid hsl(var(--border-color));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-item input[type="checkbox"]:checked + label .checkbox-custom {
    background-color: hsl(var(--primary-color));
    border-color: hsl(var(--primary-color));
}

.checkbox-item input[type="checkbox"]:checked + label .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    font-size: 0.75rem;
}

.checkbox-item label {
    color: hsl(var(--text-secondary));
    cursor: pointer;
    line-height: 1.5;
    flex: 1;
}

.checkbox-item label a {
    color: hsl(var(--primary-color));
    text-decoration: none;
}

.checkbox-item label a:hover {
    text-decoration: underline;
}

.premium-submit {
    position: relative;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: var(--border-radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    margin-top: 1rem;
}

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

.premium-submit:active {
    transform: translateY(0);
}

.submit-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.submit-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.premium-submit:hover .submit-effect {
    left: 100%;
}

@media (max-width: 768px) {
    .premium-contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .intro-visual,
    .premium-form-card {
        padding: 2rem;
    }
}

/* Compact Legal Pages Styles */
.legal-hero-compact {
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.1), hsl(var(--secondary-color) / 0.1));
    padding: calc(var(--header-height) + 2rem) 0 3rem 0;
    position: relative;
    overflow: hidden;
}

.legal-hero-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%234F46E5" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.legal-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.legal-hero-content h1 {
    color: hsl(var(--text-primary));
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-hero-content h1 i {
    color: hsl(var(--primary-color));
    margin-right: 1rem;
}

.legal-hero-content p {
    color: hsl(var(--text-secondary));
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

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

.badge {
    background-color: hsl(var(--surface));
    color: hsl(var(--text-secondary));
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    font-size: 0.875rem;
    border: 1px solid hsl(var(--border-color));
}

.legal-content-compact {
    padding: 3rem 0;
}

.legal-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

.legal-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: fit-content;
}

.legal-nav-card,
.legal-summary-card {
    background-color: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid hsl(var(--border-color));
}

.legal-nav-card h3,
.legal-summary-card h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.legal-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-nav-list li {
    margin-bottom: 0.5rem;
}

.legal-nav-list a {
    color: hsl(var(--text-secondary));
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-md);
    display: block;
    transition: var(--transition);
    font-size: 0.925rem;
}

.legal-nav-list a:hover {
    background-color: hsl(var(--primary-color) / 0.1);
    color: hsl(var(--primary-color));
}

.summary-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-points li {
    padding: 0.5rem 0;
    color: hsl(var(--text-secondary));
    font-size: 0.925rem;
    border-bottom: 1px solid hsl(var(--border-color));
    position: relative;
    padding-left: 1.5rem;
}

.summary-points li:last-child {
    border-bottom: none;
}

.summary-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: hsl(var(--success-color));
    font-weight: bold;
}

.legal-main-content {
    min-width: 0;
}

.legal-section {
    background-color: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid hsl(var(--border-color));
}

.legal-section h2 {
    color: hsl(var(--text-primary));
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid hsl(var(--primary-color));
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    color: hsl(var(--text-primary));
    margin: 1.5rem 0 1rem 0;
    font-size: 1.25rem;
}

.legal-section h4 {
    color: hsl(var(--text-primary));
    margin: 1rem 0 0.5rem 0;
    font-size: 1.125rem;
}

.legal-section p {
    color: hsl(var(--text-secondary));
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    color: hsl(var(--text-secondary));
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

.legal-section a {
    color: hsl(var(--primary-color));
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-highlight {
    background-color: hsl(var(--primary-color) / 0.1);
    border-left: 4px solid hsl(var(--primary-color));
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.legal-highlight h4 {
    color: hsl(var(--primary-color));
    margin-bottom: 0.5rem;
}

.legal-warning {
    background-color: hsl(var(--error-color) / 0.1);
    border-left: 4px solid hsl(var(--error-color));
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.legal-warning h4 {
    color: hsl(var(--error-color));
    margin-bottom: 0.5rem;
}

.contact-card {
    background-color: hsl(var(--background));
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid hsl(var(--border-color));
}

.contact-card h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .legal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .legal-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .legal-hero-compact {
        padding: calc(var(--header-height) + 1rem) 0 2rem 0;
    }
    
    .legal-hero-content h1 {
        font-size: 2rem;
    }
    
    .legal-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-sidebar {
        grid-template-columns: 1fr;
    }
    
    .legal-section {
        padding: 1.5rem;
    }
}

/* Article-specific styles */
.article-hero {
    padding: calc(var(--header-height) + 2rem) 0 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.925rem;
}

.article-category {
    background-color: hsl(var(--primary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
}

.article-date,
.article-author {
    color: hsl(var(--text-secondary));
}

.article-date::before {
    content: "📅 ";
}

.article-author::before {
    content: "✍️ ";
}

.article-excerpt {
    font-size: 1.25rem;
    color: hsl(var(--text-secondary));
    line-height: 1.6;
    margin-top: 1rem;
}

.article-content-section {
    padding: 4rem 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
}

.article-main {
    min-width: 0;
}

.article-content {
    max-width: none;
    line-height: 1.8;
}

.article-content .lead {
    font-size: 1.25rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 4px solid hsl(var(--primary-color));
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--text-primary));
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

.article-highlight {
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.1), hsl(var(--secondary-color) / 0.1));
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid hsl(var(--primary-color));
    margin: 2rem 0;
}

.article-highlight i {
    color: hsl(var(--primary-color));
    margin-right: 0.5rem;
}

.steps-container,
.implementation-steps,
.plan-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-primary));
}

.step-content p {
    color: hsl(var(--text-secondary));
    margin-bottom: 0.5rem;
}

.warning-box {
    background-color: hsl(var(--error-color) / 0.1);
    border: 1px solid hsl(var(--error-color) / 0.3);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box i {
    color: hsl(var(--error-color));
    margin-right: 0.5rem;
}

.warning-box h4 {
    color: hsl(var(--error-color));
    margin-bottom: 1rem;
}

.kpi-grid,
.tools-grid,
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.kpi-item,
.tool-category,
.benefit-card {
    background-color: hsl(var(--surface));
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.kpi-item:hover,
.tool-category:hover,
.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.kpi-item i,
.benefit-card i {
    color: hsl(var(--primary-color));
    font-size: 2rem;
    margin-bottom: 1rem;
}

.kpi-item h4,
.benefit-card h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.kpi-item p,
.benefit-card p {
    color: hsl(var(--text-secondary));
}

.cta-box {
    background: linear-gradient(135deg, hsl(var(--primary-color) / 0.1), hsl(var(--secondary-color) / 0.1));
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.cta-box p {
    color: hsl(var(--text-secondary));
    margin-bottom: 1.5rem;
}

.article-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: fit-content;
}

.sidebar-widget {
    background-color: hsl(var(--surface));
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.sidebar-widget h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article {
    text-decoration: none;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    background-color: hsl(var(--background));
    transition: var(--transition);
}

.related-article:hover {
    background-color: hsl(var(--primary-color) / 0.1);
}

.related-article .article-title {
    display: block;
    color: hsl(var(--text-primary));
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.related-article .article-date {
    color: hsl(var(--text-secondary));
    font-size: 0.875rem;
}

.download-box,
.tools-list,
.methodologies-list {
    padding: 1rem;
    background-color: hsl(var(--background));
    border-radius: var(--border-radius-md);
}

.download-box i {
    color: hsl(var(--error-color));
    font-size: 2rem;
    margin-bottom: 1rem;
}

.download-box h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

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

.tool-item,
.methodology-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: hsl(var(--text-secondary));
}

.tool-item i,
.methodology-item i {
    color: hsl(var(--primary-color));
    width: 20px;
}

/* Responsive article layout */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: calc(var(--header-height) + 1rem) 0 2rem 0;
        min-height: 50vh;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .article-content-section {
        padding: 2rem 0;
    }
    
    .kpi-grid,
    .tools-grid,
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .step-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
}
