/* Legal Pages Specific Styles */

.legal-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(10, 10, 10, 1) 50%);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #007bff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666666;
    font-style: italic;
}

/* Legal Content Layout */
.legal-content {
    padding: 3rem 0 5rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Table of Contents */
.table-of-contents {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #333333;
}

.table-of-contents h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333333;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.8rem;
}

.table-of-contents a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.table-of-contents a:hover {
    color: #007bff;
}

.table-of-contents a.active {
    color: #007bff;
    font-weight: 500;
}

/* Legal Text Content */
.legal-text {
    background: #1a1a1a;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #333333;
    line-height: 1.7;
}

.legal-text section {
    margin-bottom: 3rem;
}

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

.legal-text h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.legal-text h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.legal-text p {
    color: #b3b3b3;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-text ul,
.legal-text ol {
    color: #b3b3b3;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* Contact Info Section */
.contact-info {
    background: #0f0f0f;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #333333;
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #b3b3b3;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info strong {
    color: #ffffff;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Acknowledgment Section */
.acknowledgment {
    background: rgba(0, 123, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #007bff;
    margin-top: 2rem;
    text-align: center;
}

.acknowledgment h3 {
    color: #007bff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.acknowledgment p {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Highlight Important Text */
.legal-text p:has(strong:only-child),
.legal-text p > strong:only-child {
    background: rgba(255, 193, 7, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

/* Scroll Highlighting */
.legal-text section {
    scroll-margin-top: 100px;
}

.legal-text section:target h2 {
    color: #007bff;
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% { background: rgba(0, 123, 255, 0.2); }
    100% { background: transparent; }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .table-of-contents {
        position: static;
        order: -1;
        padding: 1.5rem;
    }

    .table-of-contents h3 {
        font-size: 1rem;
    }

    .table-of-contents a {
        font-size: 0.8rem;
    }

    .legal-text {
        padding: 2rem;
    }

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

    .legal-text h3 {
        font-size: 1.1rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .legal-hero {
        padding: 6rem 0 3rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .legal-content {
        padding: 2rem 0 3rem;
    }

    .legal-text {
        padding: 1.5rem;
    }

    .legal-text h2 {
        font-size: 1.3rem;
    }

    .legal-text p,
    .legal-text li {
        font-size: 0.9rem;
    }

    .table-of-contents {
        padding: 1rem;
    }

    .contact-info {
        padding: 1rem;
    }

    .acknowledgment {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .table-of-contents {
        display: none;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .legal-text {
        background: white;
        color: black;
        border: none;
        padding: 0;
    }

    .legal-text h2,
    .legal-text h3,
    .legal-text strong {
        color: black;
    }

    .legal-text p,
    .legal-text li {
        color: black;
    }

    .page-title {
        color: black;
        background: none;
        -webkit-text-fill-color: black;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-text section {
    animation: fadeIn 0.6s ease forwards;
}

.legal-text section:nth-child(2) { animation-delay: 0.1s; }
.legal-text section:nth-child(3) { animation-delay: 0.2s; }
.legal-text section:nth-child(4) { animation-delay: 0.3s; }
.legal-text section:nth-child(5) { animation-delay: 0.4s; }

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.table-of-contents a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}