/* Legal Pages Styling */

/* Hero Section */
.legal-hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.legal-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.legal-hero-content {
    position: relative;
    z-index: 2;
}

.legal-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.legal-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Quick Navigation */
.legal-nav {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.legal-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.legal-nav-link:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Legal Sections */
.legal-section {
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.section-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.section-content h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

.section-content .lead {
    color: #666;
    margin-bottom: 0;
}

.legal-section-body {
    padding-left: 4.5rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* Data Type Cards */
.data-type-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    height: 100%;
    transition: transform 0.3s ease;
}

.data-type-card:hover {
    transform: translateY(-5px);
}

.data-type-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.data-type-card h4 {
    color: #333;
    margin-bottom: 1rem;
}

.data-type-card ul li {
    padding: 0.25rem 0;
    color: #666;
}

/* Usage Grid */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.usage-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.usage-item:hover {
    transform: translateY(-5px);
}

.usage-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF8C42, #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.usage-item h5 {
    color: #333;
    margin-bottom: 0.5rem;
}

.usage-item p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Security Banner */
.security-banner {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.security-banner i {
    font-size: 2rem;
}

.security-banner h5 {
    color: #155724;
    margin-bottom: 0.25rem;
}

.security-banner p {
    color: #155724;
    margin-bottom: 0;
}

/* Sharing Reasons */
.sharing-reasons {
    display: grid;
    gap: 1rem;
}

.reason-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4A90E2;
}

.reason-item i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.right-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.right-item:hover {
    transform: translateY(-5px);
}

.right-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.right-item h6 {
    color: #333;
    margin-bottom: 0.5rem;
}

.right-item p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Grievance Section */
.grievance-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
}

.grievance-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.grievance-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.grievance-header i {
    font-size: 2rem;
}

.grievance-details {
    display: grid;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.detail-item i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.contact-details {
    display: grid;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-item i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-hero-section {
        padding: 100px 0 60px;
    }
    
    .legal-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .legal-section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .legal-section-body {
        padding-left: 0;
    }
    
    .usage-grid,
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .grievance-section,
    .contact-section {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .legal-nav {
        padding: 1.5rem;
    }
    
    .legal-nav .row {
        margin: 0;
    }
    
    .legal-nav .col-md-3 {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .legal-hero-content h1 {
        font-size: 2rem;
    }
    
    .legal-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .section-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .data-type-card,
    .usage-item,
    .right-item {
        padding: 1.5rem;
    }
    
    .grievance-section,
    .contact-section {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #357ABD, #6A5ACD);
}
