/**
 * Legal Pages - Premium Styling
 * For Privacy Policy, Terms of Service, and Refund Policy pages
 */

/* ========== Page Layout ========== */
.legal-page {
    min-height: 100vh;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Header Section ========== */
.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(145deg, rgba(15, 15, 25, 0.95), rgba(10, 10, 20, 0.9));
    border: 1px solid rgba(57, 255, 20, 0.15);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #39ff14, #00ffff, transparent);
}

.legal-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(57, 255, 20, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.legal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.15), rgba(0, 255, 255, 0.1));
    border: 2px solid rgba(57, 255, 20, 0.3);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 30px rgba(57, 255, 20, 0.15),
        inset 0 0 20px rgba(57, 255, 20, 0.05);
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(57, 255, 20, 0.15), inset 0 0 20px rgba(57, 255, 20, 0.05);
    }

    50% {
        box-shadow: 0 0 40px rgba(57, 255, 20, 0.25), inset 0 0 30px rgba(57, 255, 20, 0.1);
    }
}

.legal-icon svg {
    width: 100%;
    height: 100%;
    color: #39ff14;
    filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.5));
}

.legal-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #39ff14 0%, #00ffff 50%, #39ff14 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 4s ease-in-out infinite;
}

@keyframes titleShine {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.legal-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.legal-update-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 2rem;
    color: #39ff14;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========== Navigation Buttons ========== */
.legal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 0.75rem;
    color: #39ff14;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(57, 255, 20, 0.2);
    border-color: rgba(57, 255, 20, 0.4);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(57, 255, 20, 0.15);
}

.back-button svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s;
}

.back-button:hover svg {
    transform: translateX(-3px);
}

/* Legal Pages Navigation */
.legal-pages-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.legal-page-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-page-link:hover {
    background: rgba(57, 255, 20, 0.1);
    border-color: rgba(57, 255, 20, 0.3);
    color: #39ff14;
}

.legal-page-link.active {
    background: rgba(57, 255, 20, 0.15);
    border-color: rgba(57, 255, 20, 0.4);
    color: #39ff14;
}

/* ========== Content Card ========== */
.legal-card {
    background: linear-gradient(145deg, rgba(15, 15, 25, 0.95), rgba(10, 10, 20, 0.9));
    border: 1px solid rgba(57, 255, 20, 0.1);
    border-radius: 1.25rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(57, 255, 20, 0.03);
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.3), transparent);
}

/* ========== Section Styling ========== */
.legal-section {
    margin-bottom: 2.5rem;
}

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

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #39ff14, #00cc00);
    border-radius: 0.5rem;
    color: #050510;
    font-weight: 700;
    font-size: 0.875rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
}

.section-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
}

.section-content p {
    margin-bottom: 1rem;
}

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

/* ========== Lists ========== */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.legal-list li {
    position: relative;
    padding-right: 2rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.legal-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #39ff14, #00ffff);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

.legal-list li strong {
    color: #39ff14;
}

/* ========== Highlight Boxes ========== */
.info-box {
    padding: 1.5rem;
    border-radius: 1rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
}

.info-box.primary {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.1), rgba(0, 255, 255, 0.05));
    border: 1px solid rgba(57, 255, 20, 0.2);
}

.info-box.primary::before {
    background: linear-gradient(180deg, #39ff14, #00ffff);
}

.info-box.warning {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(234, 179, 8, 0.05));
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.info-box.warning::before {
    background: linear-gradient(180deg, #eab308, #f59e0b);
}

.info-box.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.info-box.danger::before {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

.info-box-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.info-box.primary .info-box-title {
    color: #39ff14;
}

.info-box.warning .info-box-title {
    color: #eab308;
}

.info-box.danger .info-box-title {
    color: #f87171;
}

.info-box-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.info-box-content ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.info-box-content li {
    position: relative;
    padding-right: 1.5rem;
    padding-bottom: 0.5rem;
}

.info-box-content li::before {
    content: '•';
    position: absolute;
    right: 0;
    font-weight: bold;
}

.info-box.primary .info-box-content li::before {
    color: #39ff14;
}

.info-box.warning .info-box-content li::before {
    color: #eab308;
}

.info-box.danger .info-box-content li::before {
    color: #f87171;
}

/* ========== Contact Box ========== */
.contact-box {
    background: linear-gradient(145deg, rgba(57, 255, 20, 0.08), rgba(0, 255, 255, 0.04));
    border: 1px solid rgba(57, 255, 20, 0.15);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.contact-box-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #39ff14;
    margin-bottom: 1rem;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-method {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(57, 255, 20, 0.1);
    border-color: rgba(57, 255, 20, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-method svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #39ff14;
}

/* ========== Table of Contents ========== */
.toc {
    background: rgba(57, 255, 20, 0.05);
    border: 1px solid rgba(57, 255, 20, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #39ff14;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.toc-list li a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.toc-list li a:hover {
    background: rgba(57, 255, 20, 0.1);
    color: #39ff14;
}

/* ========== Footer Navigation ========== */
.legal-footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(57, 255, 20, 0.1);
    flex-wrap: wrap;
}

.legal-footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.legal-footer-link:hover {
    color: #39ff14;
}

.legal-footer-link.active {
    color: #39ff14;
    font-weight: 600;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .legal-header {
        padding: 2rem 1.5rem;
    }

    .legal-title {
        font-size: 2rem;
    }

    .legal-icon {
        width: 60px;
        height: 60px;
    }

    .legal-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .legal-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .legal-pages-nav {
        justify-content: center;
    }

    .contact-methods {
        flex-direction: column;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }
}