/* ==========================================================================
   1. ALAP STÍLUSOK ÉS VÁLTOZÓK
   ========================================================================== */
:root {
    /* Színpaletta */
    --color-primary: #0f2537;
    --color-secondary: #1a3a54;
    --color-accent: #dca134;
    --color-accent-hover: #c48e28;
    --color-text-dark: #222c35;
    --color-text-light: #f4f7f9;
    --color-text-muted: #607282;
    --color-bg-white: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-card-shadow: rgba(15, 37, 55, 0.06);
    --color-card-shadow-hover: rgba(15, 37, 55, 0.12);
    
    /* Tipográfia */
    --font-main: 'Manrope', sans-serif;
    
    /* Elrendezési konstansok */
    --header-height: 80px;
    --max-width: 1200px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset és Alapbeállítások */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* Közös Konténer */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Szekció közös beállítások */
.section-padding {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

/* Szekció Fejlécek */
.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-tagline {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.3;
}

/* Gombok alapszerkezete */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition-smooth);
    gap: 10px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #111;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--color-text-light);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.accent-color {
    color: var(--color-accent);
}

/* ==========================================================================
   2. FEJLÉC ÉS NAVIGÁCIÓ
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(15, 37, 55, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    height: 70px;
    background-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.925rem;
    font-weight: 500;
    color: rgba(244, 247, 249, 0.85);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover, .nav-link:focus {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-accent);
    font-weight: 600;
}

.mobile-nav-toggle {
    display: none;
    padding: 15px;
    margin-right: -15px;
    z-index: 1010;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-light);
    transition: var(--transition-smooth);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-light);
    transition: var(--transition-smooth);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ==========================================================================
   3. NYITÓ (HERO) SZAKASZ
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, rgba(15, 37, 55, 0.95) 0%, rgba(26, 58, 84, 0.9) 100%);
    color: var(--color-text-light);
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(244, 247, 249, 0.85);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================================================
   4. RÓLUNK SZAKASZ
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    text-align: justify;
}

.about-text p strong {
    color: var(--color-primary);
}

.values-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.value-card {
    display: flex;
    gap: 20px;
    background-color: var(--color-bg-white);
    padding: 24px;
    border-radius: 6px;
    box-shadow: 0 10px 30px var(--color-card-shadow);
    transition: var(--transition-smooth);
    border-left: 4px solid var(--color-primary);
}

.value-card:hover {
    transform: translateX(5px);
    box-shadow: 0 15px 35px var(--color-card-shadow-hover);
    border-left-color: var(--color-accent);
}

.value-icon-box {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--color-bg-alt);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.value-card:hover .value-icon-box {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.value-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.value-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   5. SZOLGÁLTATÁSOK SZAKASZ
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--color-bg-white);
    padding: 45px 35px;
    border-radius: 6px;
    box-shadow: 0 15px 40px var(--color-card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(15, 37, 55, 0.1);
    border-top-color: var(--color-accent);
}

.service-icon-wrapper {
    width: 65px;
    height: 65px;
    background-color: rgba(15, 37, 55, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--color-primary);
    color: var(--color-accent);
}

.service-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-card-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   6. REFERENCIÁK SZAKASZ
   ========================================================================== */
.references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.reference-card {
    background-color: var(--color-bg-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 15px 35px var(--color-card-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px var(--color-card-shadow-hover);
}

.reference-image-container {
    position: relative;
    height: 240px;
    background-color: var(--color-primary);
    overflow: hidden;
}

.reference-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.reference-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(15, 37, 55, 0.9);
    color: var(--color-accent);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    backdrop-filter: blur(5px);
}

.reference-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.reference-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.reference-text {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    font-style: italic;
    line-height: 1.6;
}

.upcoming-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #163046 0%, #0c1d2b 100%);
}

.placeholder-icon {
    font-size: 3rem;
    color: rgba(220, 161, 52, 0.3);
    transition: var(--transition-smooth);
}

.reference-card:hover .placeholder-icon {
    color: rgba(220, 161, 52, 0.6);
    transform: rotate(15deg);
}

.upcoming-card .reference-title {
    color: var(--color-text-muted);
}

.upcoming-card .reference-text {
    font-style: normal;
    color: var(--color-text-muted);
}

/* ==========================================================================
   7. VEZETŐSÉG SZAKASZ
   ========================================================================== */
.management-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.member-card {
    background-color: var(--color-bg-white);
    max-width: 650px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 15px 40px var(--color-card-shadow);
    display: grid;
    grid-template-columns: 240px 1fr;
    transition: var(--transition-smooth);
}

.member-card:hover {
    box-shadow: 0 25px 50px var(--color-card-shadow-hover);
}

.member-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 280px;
    background-color: var(--color-primary);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.member-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.member-divider {
    width: 40px;
    height: 3px;
    background-color: var(--color-primary);
    margin-bottom: 20px;
}

.member-note {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   8. KAPCSOLAT SZAKASZ
   ========================================================================== */
.contact-box {
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, #0f2537 0%, #17344d 100%);
    color: var(--color-text-light);
    border-radius: 8px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-box .section-title {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.contact-lead-text {
    font-size: 1.1rem;
    color: rgba(244, 247, 249, 0.85);
    max-width: 650px;
    margin: 0 auto 40px auto;
}

.contact-details {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.contact-info-item {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.04);
    padding: 15px 30px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.contact-info-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.contact-info-text span {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(244, 247, 249, 0.5);
    letter-spacing: 1px;
}

.contact-email-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.contact-email-link:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   9. LÁBLÉC
   ========================================================================== */
.site-footer {
    background: linear-gradient(135deg, #081521 0%, #0f2537 100%);
    color: rgba(244, 247, 249, 0.72);
    padding: 64px 0 28px 0;
    font-size: 0.95rem;
    border-top: 1px solid rgba(220, 161, 52, 0.18);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(360px, 1.6fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr);
    gap: 48px;
    align-items: start;
}

.footer-brand,
.footer-column {
    min-width: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 620px;
}

.footer-logo {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-light);
    letter-spacing: 1px;
    line-height: 1.2;
}

.footer-company-name {
    font-weight: 700;
    color: rgba(244, 247, 249, 0.9);
}

.footer-slogan {
    color: var(--color-accent);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.45;
}

.footer-description {
    color: rgba(244, 247, 249, 0.68);
    line-height: 1.75;
    margin: 0;
}

.footer-column {
    padding-top: 2px;
}

.footer-section-title {
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.footer-service-list,
.footer-legal-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}

.footer-service-list li,
.footer-legal-links li {
    margin: 0;
}

.footer-service-list li {
    position: relative;
    padding-left: 18px;
    color: rgba(244, 247, 249, 0.68);
    line-height: 1.55;
}

.footer-service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
    transform: translateY(-50%);
}

.footer-link {
    display: inline-block;
    color: rgba(244, 247, 249, 0.68);
    line-height: 1.55;
}

.footer-link:hover {
    color: var(--color-accent);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 24px;
    margin-top: 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 30px;
}

.footer-bottom p {
    margin: 0;
}

.footer-contact-info a {
    color: rgba(244, 247, 249, 0.9);
    font-weight: 700;
}

.footer-contact-info a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   10. ANIMÁCIÓK (INTERSECTION OBSERVER-HEZ ÉS ACZESSZIBILITÁSHOZ)
   ========================================================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    
    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .fade-in-up {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .reference-card:hover .reference-img,
    .service-card:hover,
    .value-card:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* ==========================================================================
   11. RESPONSIVE / MOBIL NÉZETEK
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .references-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .primary-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-primary);
        padding: 40px 20px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 999;
    }

    .primary-navigation[data-visible="true"] {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }

    .nav-link {
        font-size: 1.25rem;
        font-weight: 600;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .member-card {
        grid-template-columns: 1fr;
    }
    
    .member-image-wrapper {
        height: 280px;
    }
    
    .contact-box {
        padding: 40px 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    
    .footer-brand,
    .footer-services-container,
    .footer-links-container {
        width: 100%;
        justify-self: stretch;
        text-align: left;
    }
    
    .footer-service-list,
    .footer-legal-links {
        align-items: flex-start;
    }
    
    .footer-bottom {
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .contact-info-item {
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
    }
    
    .contact-email-link {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   12. KAPCSOLAT ŰRLAP STÍLUSOK
   ========================================================================== */
.contact-form {
    max-width: 700px;
    margin: 0 auto 20px auto;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--color-text-light);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(244, 247, 249, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.08);
}

.contact-action-wrapper button {
    width: 100%;
    cursor: pointer;
}

#form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-weight: 600;
    display: none;
}

.success-message {
    display: block !important;
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.error-message {
    display: block !important;
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   13. JOGI OLDALAK
   ========================================================================== */
.legal-page {
    background-color: var(--color-bg-alt);
}

.legal-main {
    padding-top: 140px;
}

.legal-content-box {
    background-color: var(--color-bg-white);
    border-radius: 8px;
    box-shadow: 0 20px 50px var(--color-card-shadow);
    padding: 60px;
}

.legal-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 35px;
}

.legal-content-box .section-title {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.22;
}

.legal-updated {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    position: static !important;
    transform: none !important;
    clear: both;
}

.legal-text h2 {
    color: var(--color-primary);
    font-size: 1.35rem;
    margin: 34px 0 14px 0;
}

.legal-text p,
.legal-text li,
.legal-text td,
.legal-text th {
    color: var(--color-text-dark);
    line-height: 1.75;
}

.legal-text a {
    color: var(--color-accent);
    font-weight: 700;
}

.legal-text ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 20px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 28px 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(15, 37, 55, 0.08);
}

.legal-table th,
.legal-table td {
    text-align: left;
    vertical-align: top;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15, 37, 55, 0.08);
}

.legal-table th {
    width: 30%;
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    font-weight: 800;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-footer {
    display: block;
}

.legal-footer .footer-bottom {
    grid-column: auto;
}

.legal-footer a {
    color: rgba(244, 247, 249, 0.85);
    font-weight: 600;
}

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

.website-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
   14. COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    background-color: rgba(15, 37, 55, 0.98);
    color: var(--color-text-light);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    padding: 20px;
}

.cookie-banner[hidden] {
    display: none !important;
}

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

.cookie-text strong {
    display: block;
    color: var(--color-accent);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.cookie-text p {
    margin: 0;
    color: rgba(244, 247, 249, 0.85);
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-more {
    padding: 12px 20px;
}

@media (max-width: 768px) {
    .legal-content-box {
        padding: 35px 22px;
    }

    .legal-main {
        padding-top: 110px;
    }

    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table th,
    .legal-table td {
        display: block;
        width: 100%;
    }

    .legal-table th {
        border-bottom: none;
        padding-bottom: 6px;
    }

    .legal-table td {
        padding-top: 6px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-actions .btn {
        width: 100%;
    }
}


/* Footer layout final override */
@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 48px 0 24px 0;
    }

    .footer-main {
        gap: 28px;
    }

    .footer-logo {
        font-size: 1.18rem;
    }
}
