/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0f1419 100%);
    color: #e1e5f2;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Back to Home Button */
.back-to-home {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.home-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        0 8px 25px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.home-button::before {
    content: '';
    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 ease;
}

.home-button:hover::before {
    left: 100%;
}

.home-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 12px 35px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 50%, #3b82f6 100%);
}

.home-button:active {
    transform: translateY(0) scale(1.02);
}

.home-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.home-text {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    margin-top: 80px;
}

.hero-section::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="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: perspective(500px) rotateX(15deg);
    animation: titleFloat 6s ease-in-out infinite alternate;
}

.title-accent {
    background: linear-gradient(45deg, #60a5fa, #34d399, #fbbf24);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-decoration {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #60a5fa, transparent);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

/* Content Section */
.content-section {
    flex: 1;
    padding: 3rem 2rem;
    background: rgba(15, 20, 25, 0.8);
    backdrop-filter: blur(10px);
}

.content-card {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 20px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.card-header {
    text-align: center;
    margin-bottom: 3rem;
}

.card-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(96, 165, 250, 0.3);
}

.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(31, 41, 55, 0.3);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.legal-section:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    background: rgba(31, 41, 55, 0.5);
}

.legal-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-section h3::before {
    content: '▶';
    margin-right: 0.5rem;
    color: #3b82f6;
    font-size: 0.8em;
}

.legal-section p {
    margin-bottom: 1rem;
    color: #d1d5db;
    font-size: 1rem;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
}

.legal-section li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #d1d5db;
    transition: color 0.3s ease;
}

.legal-section li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

.legal-section li:hover {
    color: #60a5fa;
}

.contact-info {
    background: rgba(59, 130, 246, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #e5e7eb;
}

.contact-info strong {
    color: #60a5fa;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    padding: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.footer-link:hover {
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    transform: translateY(-2px);
}

.footer-separator {
    color: #6b7280;
    margin: 0 1rem;
}

.copyright {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Animations */
@keyframes titleFloat {
    0% {
        transform: perspective(500px) rotateX(15deg) translateY(0px);
    }

    100% {
        transform: perspective(500px) rotateX(15deg) translateY(-10px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleX(1);
    }

    50% {
        opacity: 0.7;
        transform: scaleX(1.1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .back-to-home {
        top: 15px;
        left: 15px;
    }

    .home-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .home-icon {
        font-size: 1rem;
    }

    .hero-section {
        padding: 2rem 1rem;
        margin-top: 70px;
    }

    .main-title {
        font-size: 2.5rem;
        transform: none;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .content-section {
        padding: 2rem 1rem;
    }

    .content-card {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }

    .card-header h2 {
        font-size: 2rem;
    }

    .legal-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .back-to-home {
        top: 10px;
        left: 10px;
    }

    .home-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        border-radius: 25px;
    }

    .home-text {
        display: none;
    }

    .home-button {
        width: 45px;
        height: 45px;
        justify-content: center;
        border-radius: 50%;
    }

    .main-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-section {
        margin-top: 65px;
    }

    .content-card {
        padding: 1.5rem 1rem;
    }

    .legal-section {
        padding: 0.75rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .legal-section p,
    .legal-section li {
        font-size: 0.9rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .legal-section {
        border-left-width: 6px;
    }

    .legal-section h3 {
        color: #ffffff;
    }

    .footer-link {
        color: #ffffff;
    }

    .home-button {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .home-button:hover {
        transform: none;
    }
}