/* Legal Pages Styles */

/* Base Layout */
.legal-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0a0f 0%, #1a0f2e 100%);
    color: #e5e5e5;
    font-family: 'Inter', sans-serif;
}

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

.legal-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.legal-header {
    padding: 2rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
    color: #8B5CF6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #EC4899;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

.legal-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.last-updated {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #8B5CF6;
}

/* Cards Grid (for Legal Hub) */
.legal-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.legal-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.legal-card:hover::before {
    transform: scaleX(1);
}

.legal-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-8px);
}

.legal-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.legal-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
}

.legal-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.legal-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-updated {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.btn-legal-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-legal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-legal-card svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Table of Contents */
.toc-wrapper {
    position: sticky;
    top: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.toc-title {
    font-size: 1rem;
    font-weight: 600;
    color: #8B5CF6;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 8px;
}

.toc-list a:hover,
.toc-list a.active {
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
}

/* Content Sections */
.legal-content {
    padding: 3rem 0;
}

.legal-section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}

.legal-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    font-family: 'Space Grotesk', sans-serif;
}

.legal-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 2rem 0 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.legal-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 1.5rem 0 0.75rem;
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.legal-section ul,
.legal-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.legal-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-section strong {
    color: #fff;
    font-weight: 600;
}

/* Callout Boxes */
.callout {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid #8B5CF6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.callout-success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
}

.callout-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
}

.callout-info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
}

.callout-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

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

/* TL;DR Box */
.tldr {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.tldr-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #8B5CF6;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.tldr ul {
    margin: 0;
    padding-left: 1.5rem;
}

/* Code Blocks */
.code-block {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e5e5e5;
    line-height: 1.6;
}

.code-block code {
    color: #10b981;
}

/* Comparison Table */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-column {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.comparison-column h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #8B5CF6;
}

.comparison-column ul {
    padding-left: 1.5rem;
}

/* Contact Info */
.contact-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.contact-box h3 {
    margin-top: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    stroke: #8B5CF6;
}

.contact-item a {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: #EC4899;
}

/* Footer */
.legal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #8B5CF6;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #8B5CF6;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* FAQ Specific Styles */
.faq-category {
    margin-bottom: 3rem;
}

.faq-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #8B5CF6;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    user-select: none;
}

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.faq-icon {
    width: 24px;
    height: 24px;
    stroke: #8B5CF6;
    stroke-width: 2;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-container {
        padding: 1rem;
    }

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

    .legal-cards-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .toc-wrapper {
        position: relative;
        top: 0;
    }

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

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

/* Selection Color */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}
