/* ===========================================
   KRABZI LEGAL PAGES - COMPLETE CSS
   Version: 1.0 - Black Footer Edition
   Includes Header, Footer, and Legal Content
   =========================================== */

/* ===== 1. RESET & 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: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 2. HEADER STYLES ===== */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
}

.krabzi-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-main-text {
    font-size: 28px;
    font-weight: 800;
    color: #1a237e;
    letter-spacing: -0.5px;
}

.logo-main-text span {
    color: #3949ab;
}

.logo-tagline {
    font-size: 11px;
    font-weight: 600;
    color: #3949ab;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.company-type {
    font-size: 10px;
    color: #666;
    font-weight: 500;
    margin-top: 2px;
}

/* Navigation Styles */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
}

nav ul li a:hover {
    color: #1a237e;
}

nav ul li a.active {
    color: #1a237e;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1a237e;
    border-radius: 2px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1a237e;
    cursor: pointer;
    padding: 5px;
}

/* ===== 3. LEGAL PAGE HEADER ===== */
.legal-page-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-page-header::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" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.legal-header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.legal-header-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 25px;
    font-weight: 300;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.6;
}

.breadcrumb span {
    opacity: 0.9;
    font-weight: 500;
}

/* ===== 4. LEGAL CONTENT SECTION ===== */
.legal-content-section {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.legal-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Table of Contents */
.table-of-contents {
    position: sticky;
    top: 120px;
    height: fit-content;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #1a237e;
}

.table-of-contents h3 {
    color: #1a237e;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 15px;
}

.table-of-contents a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.table-of-contents a:hover {
    background: #f0f5ff;
    color: #1a237e;
    transform: translateX(5px);
}

.table-of-contents a.active {
    background: #1a237e;
    color: white;
    font-weight: 500;
}

.table-of-contents a i {
    width: 20px;
    text-align: center;
    color: #3949ab;
}

/* Main Legal Content */
.main-legal-content {
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.legal-intro {
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f5ff;
    margin-bottom: 50px;
}

.legal-intro h2 {
    color: #1a237e;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 700;
}

.legal-intro p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

/* Legal Sections */
.legal-section {
    margin-bottom: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid #f0f5ff;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.section-number {
    background: #1a237e;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.section-header h2 {
    color: #1a237e;
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.section-content {
    padding-left: 70px;
}

.section-content h4 {
    color: #283593;
    margin: 30px 0 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.section-content ul {
    margin: 20px 0;
    padding-left: 25px;
}

.section-content li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
}

.section-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Special Elements */
.important-note {
    background: #fff8e1;
    border-left: 5px solid #ff9800;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.important-note i {
    color: #ff9800;
    font-size: 1.8rem;
    margin-top: 2px;
}

.privacy-highlight {
    background: #e3f2fd;
    border-left: 5px solid #2196f3;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.privacy-highlight i {
    color: #2196f3;
    font-size: 1.8rem;
}

/* Grids and Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #f0f5ff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.service-item:hover {
    transform: translateY(-5px);
    background: #f0f5ff;
}

.service-item i {
    font-size: 2.2rem;
    color: #1a237e;
    margin-bottom: 20px;
}

/* ===== 5. FOOTER STYLES (BLACK/DARK THEME) ===== */
footer {
    background: #111111;
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 4px solid #1a237e;
}

/* Footer Logo Container */
.footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.footer-logo-text span {
    color: #4a90e2;
}

.footer-logo-tagline {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.footer-company-type {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    margin-top: 2px;
}

/* Footer Content Grid */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

/* Footer Columns */
.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #4a90e2;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Quick Links */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.quick-links a:hover {
    color: #4a90e2;
    transform: translateX(5px);
}

.quick-links a.active {
    color: #4a90e2;
    font-weight: 600;
}

/* Contact Info List */
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.contact-info-list i {
    color: #4a90e2;
    font-size: 1rem;
    margin-top: 3px;
    min-width: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links a:hover {
    background: #4a90e2;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.7);
}

.footer-bottom a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 5px;
}

.footer-bottom a:hover {
    color: #4a90e2;
}

/* ===== 6. RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .legal-container {
        grid-template-columns: 1fr;
    }
    
    .table-of-contents {
        position: static;
        margin-bottom: 40px;
    }
    
    .section-content {
        padding-left: 0;
    }
    
    .legal-header-content h1 {
        font-size: 2.8rem;
    }
    
    /* Navigation for mobile */
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li a {
        padding: 12px 0;
        border-bottom: 1px solid #f5f5f5;
    }
    
    nav ul li:last-child a {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .legal-page-header {
        padding: 80px 0 50px;
    }
    
    .legal-header-content h1 {
        font-size: 2.3rem;
    }
    
    .main-legal-content {
        padding: 30px 25px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 1.7rem;
    }
    
    .section-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo-img {
        width: 50px;
        height: 50px;
    }
    
    .footer-logo-text {
        font-size: 28px;
    }
    
    .footer-logo-tagline {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .legal-header-content h1 {
        font-size: 2rem;
    }
    
    .main-legal-content {
        padding: 25px 20px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .legal-intro h2 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        gap: 25px;
    }
}

/* ===== 7. ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== 8. PRINT STYLES ===== */
@media print {
    .table-of-contents,
    .mobile-menu-btn,
    .social-links,
    .contact-btn,
    .cookie-btn,
    footer {
        display: none !important;
    }
    
    .legal-container {
        display: block;
    }
    
    .main-legal-content {
        box-shadow: none;
        padding: 0;
    }
    
    .legal-page-header {
        background: white !important;
        color: black !important;
        padding: 40px 0 !important;
    }
    
    .legal-header-content h1 {
        color: black !important;
    }
}

/* ===== 9. UTILITY CLASSES ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #1a237e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #283593;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

.btn-primary {
    background: #1a237e;
}

.btn-secondary {
    background: #3949ab;
}

.text-center {
    text-align: center;
}

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }