/* Home page animations and styles */

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(300px) translateY(300px);
        opacity: 0;
    }
}

@keyframes drawConstellation {
    0% { stroke-dashoffset: 1000; opacity: 0; }
    20% { opacity: 0.3; }
    50% { stroke-dashoffset: 0; opacity: 0.3; }
    80% { opacity: 0.3; }
    100% { opacity: 0; }
}

@keyframes fadeConstellation {
    0% { opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.4; }
    100% { opacity: 0; }
}

.star {
    animation: twinkle var(--twinkle-speed) ease-in-out infinite;
}

.shooting-star {
    animation: shooting 1.5s ease-out forwards;
}

.gradient-text {
    background: linear-gradient(to right, #174A69, #3D91C2, #5BB8E8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.glass-morphism {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.05);
}

.constellation-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawConstellation 8s ease-in-out;
}

.constellation-star {
    animation: fadeConstellation 8s ease-in-out;
}

/* Legal content styles for static pages — matches home page palette */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 56px;
    font-family: 'Nunito', system-ui, sans-serif;
    background: linear-gradient(180deg, #3A342A 0%, #2D2822 100%);
    border: 1px solid #6A6248;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
}

.legal-content::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4BA80, transparent);
    opacity: .6;
}

.legal-content h1 {
    color: #F0ECE4;
    margin: 0 0 20px;
    font-size: 38px;
    font-weight: 300;
    letter-spacing: -.8px;
    line-height: 1.15;
    text-align: center;
}

.legal-content h2 {
    color: #D4BA80;
    margin-top: 36px;
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.legal-content h3 {
    color: #F0ECE4;
    margin-top: 22px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.1px;
}

.legal-content p,
.legal-content li {
    color: #D4C8B0;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
    font-weight: 400;
}

.legal-content ul {
    margin: 0 0 20px;
    padding-left: 22px;
}

.legal-content a {
    color: #D4BA80;
    border-bottom: 1px solid rgba(212, 186, 128, .3);
    transition: color .15s, border-color .15s;
}

.legal-content a:hover {
    color: #E8D4A0;
    border-color: #E8D4A0;
}

.legal-content .last-updated {
    text-align: center;
    color: #9A8F78;
    font-style: italic;
    font-size: 13px;
    margin-bottom: 30px;
}

.legal-content .contact-info,
.legal-content .highlight-box,
.legal-content .important-notice {
    background: rgba(31, 28, 23, 0.6);
    border: 1px solid #4A4234;
    border-radius: 14px;
    padding: 20px 22px;
    margin: 22px 0;
}

.legal-content .contact-info p,
.legal-content .highlight-box p,
.legal-content .important-notice p {
    margin-bottom: 8px;
}

.legal-content .contact-info p:last-child,
.legal-content .highlight-box p:last-child,
.legal-content .important-notice p:last-child {
    margin-bottom: 0;
}

.legal-content strong {
    color: #F0ECE4;
    font-weight: 700;
}

.legal-content hr {
    border: none;
    border-top: 1px solid #4A4234;
    margin: 36px 0;
}

@media (max-width: 720px) {
    .legal-content {
        padding: 32px 20px;
        border-radius: 18px;
    }
    .legal-content h1 { font-size: 28px; }
    .legal-content h2 { font-size: 18px; }
    .legal-content ul { padding-left: 18px; }
}