@font-face {
    font-family: 'HYWenHei';
    src: url('assets/fonts/HYWenHei-85W.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1c22;
    min-height: 100vh;
    font-family: 'HYWenHei', Arial, sans-serif;
    color: #e0e0e0;
    line-height: 1.7;

    /* Subtle grid pattern - mecha/tech feel */
    background-image:
            linear-gradient(rgba(253, 252, 94, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(253, 252, 94, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Scanline overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 3px
    );
    z-index: 1000;
    opacity: 0.3;
}

.legal-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 40px;
    position: relative;
}

/* Corner decorations - mecha style */
.legal-container::before,
.legal-container::after {
    content: '';
    position: fixed;
    width: 80px;
    height: 80px;
    border-color: rgba(253, 252, 94, 0.3);
    border-style: solid;
    pointer-events: none;
}

.legal-container::before {
    top: 20px;
    left: 20px;
    border-width: 2px 0 0 2px;
}

.legal-container::after {
    bottom: 20px;
    right: 20px;
    border-width: 0 2px 2px 0;
}

/* Back link - tech button style */
.back-link {
    display: inline-block;
    color: #FDFC5E;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 50px;
    padding: 10px 20px;
    border: 1px solid rgba(253, 252, 94, 0.4);
    background: rgba(253, 252, 94, 0.05);
    transition: all 0.3s ease;
    position: relative;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.back-link:hover {
    background: rgba(253, 252, 94, 0.15);
    border-color: #FDFC5E;
    box-shadow: 0 0 20px rgba(253, 252, 94, 0.2);
}

/* Main title - mecha display style */
h1 {
    font-size: 2.8rem;
    color: #FDFC5E;
    margin-bottom: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow:
            0 0 10px rgba(253, 252, 94, 0.5),
            0 0 30px rgba(253, 252, 94, 0.2);
    position: relative;
    display: inline-block;
}

/* Decorative line under title */
h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FDFC5E, rgba(253, 252, 94, 0.3), transparent);
}

.last-updated {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 50px;
    margin-top: 30px;
    padding-left: 15px;
    border-left: 2px solid rgba(253, 252, 94, 0.3);
    font-style: italic;
}

/* Sections - panel style */
section {
    margin-bottom: 40px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(253, 252, 94, 0.1);
    border-left: 3px solid rgba(253, 252, 94, 0.5);
    position: relative;
    transition: all 0.3s ease;
}

section:hover {
    background: rgba(253, 252, 94, 0.03);
    border-left-color: #FDFC5E;
    box-shadow: 0 0 30px rgba(253, 252, 94, 0.05);
}

/* Section number indicator */
section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-right: 1px solid rgba(253, 252, 94, 0.2);
    border-top: 1px solid rgba(253, 252, 94, 0.2);
}

h2 {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Yellow dot before h2 */
h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #FDFC5E;
    box-shadow: 0 0 10px rgba(253, 252, 94, 0.5);
}

p {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 15px;
}

ul, ol {
    color: #b0b0b0;
    margin-left: 25px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px;
    position: relative;
}

/* Custom list markers */
ul li::marker {
    color: #FDFC5E;
}

/* Links */
a {
    color: #FDFC5E;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-shadow: 0 0 10px rgba(253, 252, 94, 0.5);
}

/* Email/contact highlight box */
section:last-child {
    background: rgba(253, 252, 94, 0.05);
    border: 1px solid rgba(253, 252, 94, 0.3);
}

/* Vignette effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 999;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1c22;
}

::-webkit-scrollbar-thumb {
    background: rgba(253, 252, 94, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(253, 252, 94, 0.5);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .legal-container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    h2 {
        font-size: 1rem;
    }

    section {
        padding: 20px;
    }

    .legal-container::before,
    .legal-container::after {
        width: 40px;
        height: 40px;
    }
}
