/* Terms of Use Page Styles */

/* Keyframe animations */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-legal {
    0% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.1);
    }
}

/* Animation classes */
.animate-fade-in {
    opacity: 0;
    animation: fade-in 0.8s ease-out forwards;
}

.animate-fade-in:nth-child(2) { animation-delay: 0.2s; }
.animate-fade-in:nth-child(3) { animation-delay: 0.4s; }
.animate-fade-in:nth-child(4) { animation-delay: 0.6s; }
.animate-fade-in:nth-child(5) { animation-delay: 0.8s; }

/* Hero Section */
.terms-hero {
    background: linear-gradient(135deg, gold, rgb(206, 175, 0), rgb(143, 121, 0));
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
                linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
    opacity: 0.1;
    animation: pulse-legal 5s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-top: 40px;
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.legal-notice {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.notice-label {
    font-weight: 600;
    margin-right: 8px;
}

.notice-value {
    font-weight: 700;
    color: #fbbf24;
}

/* Main Content */
.terms-main {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Important Notice */
.terms-notice {
    margin-bottom: 3rem;
}

.notice-content {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid #f59e0b;
    text-align: center;
}

.notice-title {
    font-family: 'Lora', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 1rem;
}

.notice-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #78350f;
}

/* Terms Sections */
.terms-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.terms-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
}

.section-content {
    color: #475569;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.section-text:last-child {
    margin-bottom: 0;
}

/* Lists */
.terms-list, .prohibited-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.terms-list li, .prohibited-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #475569;
    font-size: 1.075rem;
    line-height: 1.7;
}

.terms-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.5rem;
}

.prohibited-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    top: 0;
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Disclaimer Box */
.disclaimer-box {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #f87171;
    margin: 2rem 0;
}

.disclaimer-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #b91c1c;
    margin-bottom: 1rem;
}

.disclaimer-text:last-child {
    margin-bottom: 0;
}

/* Contact Information */
.contact-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.contact-detail {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #1e40af;
}

.contact-detail:last-child {
    margin-bottom: 0;
}

.contact-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Footer Active Page Styling */
.footer-nav .active-page {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .terms-main {
        padding: 60px 15px;
    }
    
    .notice-content, .terms-section {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-text {
        font-size: 1rem;
    }
    
    .legal-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .notice-label {
        margin-right: 0;
        margin-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .terms-hero {
        padding: 100px 15px 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .notice-content, .terms-section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .disclaimer-box, .contact-info {
        padding: 1.5rem;
    }
    
    .terms-list li, .prohibited-list li {
        padding-left: 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .terms-hero {
        background: white !important;
        color: black !important;
        page-break-inside: avoid;
    }
    
    .terms-section {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    
    .section-title {
        color: black !important;
    }
    
    .contact-link {
        color: black !important;
        text-decoration: underline;
    }
    
    .contact-link::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in {
        animation: none;
        opacity: 1;
    }
    
    .terms-hero::before {
        animation: none;
    }
    
    .terms-section {
        transition: none;
    }
}

/* Focus styles for better keyboard navigation */
.contact-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .terms-section {
        border: 2px solid #000;
    }
    
    .section-title::after {
        background: #000;
    }
    
    .disclaimer-box {
        border: 2px solid #000;
    }
}