/* Legal Drawer Component */
.legal-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.legal-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.legal-drawer {
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    height: 100%;
    background: #03070c;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    color: #f0f6fc;
}

@media (max-width: 600px) {
    .legal-drawer {
        width: 100%;
        right: -100%;
    }
}

.legal-drawer.active {
    right: 0;
}

.legal-drawer-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legal-drawer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.legal-drawer-close {
    background: none;
    border: none;
    color: #9198a1;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.legal-drawer-close:hover {
    color: #f0f6fc;
    transform: rotate(90deg);
}

.legal-drawer-tabs {
    padding: 0 32px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

.legal-tab-btn {
    padding: 16px 0;
    background: none;
    border: none;
    color: #9198a1;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.legal-tab-btn:hover {
    color: #f0f6fc;
}

.legal-tab-btn.active {
    color: #0271FC;
}

.legal-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0271FC;
    box-shadow: 0 0 8px rgba(2, 113, 252, 0.4);
}

.legal-drawer-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    color: #9198a1;
    line-height: 1.6;
}

.legal-drawer-content h2 {
    color: #f0f6fc;
    font-size: 1.25rem;
    margin: 32px 0 16px 0;
}

.legal-drawer-content h2:first-child {
    margin-top: 0;
}

.legal-drawer-content h3 {
    color: #f0f6fc;
    font-size: 1.1rem;
    margin: 24px 0 12px 0;
}

.legal-drawer-content p {
    margin-bottom: 16px;
}

.legal-drawer-content ul,
.legal-drawer-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.legal-drawer-content li {
    margin-bottom: 8px;
}

.legal-drawer-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.legal-drawer-content th,
.legal-drawer-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-drawer-content th {
    background: rgba(255, 255, 255, 0.05);
    color: #f0f6fc;
    font-weight: 700;
}

.legal-tab-content {
    display: none;
}

.legal-tab-content.active {
    display: block;
    animation: fadeInLegal 0.3s ease;
}

@keyframes fadeInLegal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-drawer-footer {
    padding: 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #6e7681;
}

.highlight-box {
    background: rgba(2, 113, 252, 0.1);
    border: 1px solid rgba(2, 113, 252, 0.4);
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    color: #f0f6fc;
}