/* ===== FOOTER PAGES (PRIVACY & TERMS) STYLES ===== */

/* Hero Section */
.legal-hero {
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-hero-content .main-name {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #0f0, #0ff, #f0f, #0ff, #0f0);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
    font-weight: 800;
}

.legal-hero-content .role {
    font-size: 1.2rem;
    color: #0ff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.legal-hero-content .role::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0f0, #0ff);
    animation: expandWidth 1.5s ease forwards;
}

.last-updated {
    margin-top: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #0ff;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.last-updated i {
    font-size: 0.9rem;
}

.hero-decoration {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #0ff, #f0f);
    margin: 30px auto 0;
    animation: expandWidthDecoration 1.5s ease forwards;
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.slide-up {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.scale-in {
    animation: scaleIn 0.5s ease forwards;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Legal Container */
.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px 80px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar Navigation */
.legal-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-nav {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.sidebar-nav h3 {
    font-size: 1.2rem;
    color: #0ff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 12px;
}

.sidebar-nav a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: #0ff;
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Main Content */
.legal-content {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.legal-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.8rem;
    color: #0ff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid #0ff;
    padding-left: 15px;
}

.legal-section h2 i {
    font-size: 1.5rem;
}

.legal-section p {
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 15px;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.legal-section li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #ccc;
}

.legal-section li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #0ff;
}

.legal-section strong {
    color: #0ff;
}

/* Security Badge */
.security-badge {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.security-badge i {
    font-size: 1.5rem;
    color: #0ff;
}

.security-badge span {
    color: #0ff;
    font-weight: 500;
}

/* Disclaimer Box */
.disclaimer-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.disclaimer-box i {
    font-size: 1.5rem;
    color: #ffc107;
}

.disclaimer-box p {
    margin: 0;
    color: #ffc107;
}

/* Cookie Controls */
.cookie-control {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid #0ff;
    color: #0ff;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: scale(1.02);
}

.btn-primary {
    background: linear-gradient(45deg, #0ff, #0f0);
    border: none;
    color: #000;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* Contact Info Box */
.contact-info-box {
    background: rgba(0, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.contact-info-box p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-box i {
    width: 25px;
    color: #0ff;
}

.contact-info-box a {
    color: #0ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-box a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Footer Note */
.legal-footer-note {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

.legal-footer-note i {
    color: #0ff;
    margin-right: 8px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(0, 255, 255, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: #0ff;
}

/* Animations */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes expandWidth {
    from { width: 0; opacity: 0; }
    to { width: 60px; opacity: 1; }
}

@keyframes expandWidthDecoration {
    from { width: 0; opacity: 0; }
    to { width: 100px; opacity: 1; }
}

/* Light Mode */
body.light .legal-hero-content .main-name {
    background: linear-gradient(45deg, #1a1a1a, #0066ff, #ff00ff, #1a1a1a);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
}

body.light .legal-hero-content .role {
    color: #0066ff;
}

body.light .sidebar-nav {
    background: rgba(245, 245, 245, 0.3);
    border-color: rgba(0, 102, 255, 0.1);
}

body.light .sidebar-nav h3 {
    color: #0066ff;
    border-bottom-color: rgba(0, 102, 255, 0.2);
}

body.light .sidebar-nav a {
    color: #1a1a1a;
}

body.light .sidebar-nav a:hover,
body.light .sidebar-nav a.active {
    color: #0066ff;
    background: rgba(0, 102, 255, 0.1);
}

body.light .legal-content {
    background: rgba(245, 245, 245, 0.3);
    border-color: rgba(0, 102, 255, 0.1);
}

body.light .legal-section h2 {
    color: #0066ff;
    border-left-color: #0066ff;
}

body.light .legal-section p,
body.light .legal-section li {
    color: #2a2a2a;
}

body.light .legal-section li::before {
    color: #0066ff;
}

body.light .legal-section strong {
    color: #0066ff;
}

body.light .security-badge {
    background: rgba(0, 102, 255, 0.05);
    border-color: rgba(0, 102, 255, 0.2);
}

body.light .security-badge i,
body.light .security-badge span {
    color: #0066ff;
}

body.light .disclaimer-box {
    background: rgba(255, 193, 7, 0.05);
}

body.light .btn-outline {
    border-color: #0066ff;
    color: #0066ff;
}

body.light .btn-outline:hover {
    background: rgba(0, 102, 255, 0.1);
}

body.light .contact-info-box {
    background: rgba(0, 102, 255, 0.05);
    border-color: rgba(0, 102, 255, 0.2);
}

body.light .contact-info-box i {
    color: #0066ff;
}

body.light .contact-info-box a {
    color: #0066ff;
}

body.light .contact-info-box a:hover {
    color: #000;
}

body.light .legal-footer-note {
    border-top-color: rgba(0, 102, 255, 0.2);
}

body.light .legal-footer-note i {
    color: #0066ff;
}

body.light .back-to-top {
    background: rgba(0, 102, 255, 0.9);
    color: #fff;
}

body.light .back-to-top:hover {
    background: #0066ff;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-hero {
        padding: 80px 20px 40px;
    }
    
    .legal-hero-content .main-name {
        font-size: 2.5rem;
    }
    
    .legal-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 30px;
    }
    
    .legal-sidebar {
        position: static;
    }
    
    .legal-content {
        padding: 25px;
    }
    
    .legal-section h2 {
        font-size: 1.4rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .legal-hero-content .main-name {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 20px;
    }
    
    .legal-section h2 {
        font-size: 1.2rem;
    }
    
    .cookie-control {
        flex-direction: column;
    }
    
    .btn-outline, .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .legal-sidebar,
    .back-to-top,
    .print-btn,
    .copy-link-btn,
    .cookie-modal,
    .cookie-message {
        display: none !important;
    }
    
    .legal-container {
        display: block;
        padding: 0;
    }
    
    .legal-content {
        background: transparent;
        padding: 0;
        border: none;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
    
    .legal-section h2 {
        color: #000 !important;
    }
    
    .legal-section p,
    .legal-section li {
        color: #000 !important;
    }
}

/* Cookie Modal Styles (injected by JS, but included here for consistency) */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid #0ff;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.cookie-modal-header i {
    font-size: 1.8rem;
    color: #0ff;
}

.cookie-modal-header h3 {
    flex: 1;
    margin: 0;
    color: #fff;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: #0ff;
}

.cookie-modal-body {
    padding: 25px;
}

.cookie-option {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 8px;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0ff;
}

.cookie-option strong {
    color: #0ff;
}

.cookie-option p {
    margin: 0 0 0 28px;
    font-size: 0.85rem;
    color: #aaa;
}

.cookie-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    text-align: right;
}

.cookie-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid #0ff;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.cookie-message.show {
    transform: translateX(0);
}

.cookie-message.success {
    border-color: #0f0;
}

.cookie-message.success i {
    color: #0f0;
}

.cookie-message.error {
    border-color: #f00;
}

.cookie-message.error i {
    color: #f00;
}

.cookie-message i {
    font-size: 1.2rem;
    color: #0ff;
}

.cookie-message span {
    color: #fff;
    font-size: 0.9rem;
}

/* Light mode for cookie modal */
body.light .cookie-modal {
    background: rgba(0, 0, 0, 0.5);
}

body.light .cookie-modal-content {
    background: rgba(245, 245, 245, 0.98);
    border-color: #0066ff;
}

body.light .cookie-modal-header i,
body.light .cookie-modal-header h3 {
    color: #0066ff;
}

body.light .cookie-option strong {
    color: #0066ff;
}

body.light .cookie-option p {
    color: #666;
}

body.light .cookie-modal-close:hover {
    color: #0066ff;
}

body.light .cookie-message {
    background: rgba(245, 245, 245, 0.95);
    border-color: #0066ff;
}

body.light .cookie-message span {
    color: #1a1a1a;
}