.legal-container {
    flex: 1;
    padding: 3.5rem 4rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.legal-title {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.legal-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.legal-sections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.legal-section {
    background: rgba(20, 26, 55, 0.6);
    border: 1px solid rgba(184, 193, 219, 0.1);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    backdrop-filter: blur(10px);
}

.legal-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    border-bottom: 1px solid rgba(184, 193, 219, 0.07);
    position: relative;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0.75rem;
    width: 3px;
    background: linear-gradient(to bottom, #2b3a87, #4a6fa5);
    border-radius: 2px;
}

.legal-section p,
.legal-section li {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 0.6rem;
}

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

.legal-section strong {
    color: var(--text-white);
    font-weight: 600;
}

.legal-section a {
    color: rgba(114, 164, 242, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: var(--text-white);
}

.legal-section code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85em;
    background: rgba(74, 111, 165, 0.2);
    border: 1px solid rgba(74, 111, 165, 0.3);
    border-radius: 4px;
    padding: 0.1em 0.45em;
    color: rgba(154, 194, 255, 0.9);
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.6rem;
}

.legal-section ul li {
    padding: 0.2rem 0 0.2rem 1.25rem;
    position: relative;
    margin-bottom: 0;
}

.legal-section ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: rgba(114, 164, 242, 0.7);
}

.legal-footer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    background: var(--gradient-blue);
    border-radius: 25px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-back:hover {
    background: var(--gradient-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 111, 165, 0.4);
    text-decoration: none;
}

.legal-update {
    font-size: 0.8rem;
    color: rgba(184, 193, 219, 0.45);
}

@media (max-width: 768px) {
    .legal-container {
        padding: 2.5rem 2rem 2rem;
    }

    .legal-title {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }

    .legal-section {
        padding: 1.25rem 1.5rem;
        border-radius: 16px;
    }

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

@media (max-width: 480px) {
    .legal-container {
        padding: 2rem 1.5rem 1.5rem;
    }

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

    .legal-section {
        padding: 1rem 1.25rem;
    }
}
