 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    position: relative;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    background-color: #ffffff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin-left: 150px;
}

.logo-image {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-image {
    transform: scale(1.1);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #ff0000;
    transition: color 0.3s ease;
}

.logo-container:hover .logo-text {
    color: #cc0000;
}

nav {
    display: flex;
}

nav a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 5px;
    display: block;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
}

nav a:hover {
    color: #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
    transform: translateY(-2px);
}

nav a i {
    margin-right: 8px;
}

.mobile-menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-icon:hover {
    color: #ff0000;
}

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 30px;
}

h1 {
    text-align: center;
    color: #ff0000;
    margin-bottom: 20px;
    font-size: 36px;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 18px;
}

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

.legal-section {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.legal-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255,0,0,0.2);
}

h2 {
    color: #ff0000;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
}

ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 0 30px;
}

.footer-section h3 {
    color: #ff0000;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.footer-section p, .footer-section ul {
    margin-bottom: 15px;
}

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

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

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.footer-section ul li a:hover {
    color: #ff0000;
}

.footer-bottom {
    background-color: #222;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    font-size: 14px;
}

.custom-link {
    color: #ff0000;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.custom-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ff0000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.custom-link:hover {
    color: #cc0000;
}

.custom-link:hover::after {
    transform: scaleX(1);
}

@media (max-width: 767px) {
    header {
        padding: 10px 20px;
    }

    .logo-container {
        margin-left: 0;
    }

    .logo-image {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }

    .logo-text {
        font-size: 18px;
    }

    .mobile-menu-icon {
        display: block;
        z-index: 1001;
    }

    nav {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        padding-top: 60px;
    }

    nav.show {
        display: block;
        right: 0;
    }

    nav a {
        display: block;
        padding: 20px;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 18px;
        text-align: left;
        color: #333;
        transition: all 0.3s ease;
    }

    nav a:last-child {
        border-bottom: none;
    }

    nav a:hover {
        background-color: #f0f0f0;
        color: #ff0000;
        padding-left: 25px;
    }

    nav a i {
        width: 30px;
        text-align: center;
        margin-right: 10px;
        font-size: 20px;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .overlay.show {
        display: block;
        opacity: 1;
    }

    main {
        padding: 0 20px;
    }

    h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
    }

    .legal-section {
        padding: 20px;
    }

    h2 {
        font-size: 20px;
    }
}

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

.legal-section {
    animation: fadeIn 0.5s ease-in-out;
}