/* Legal Pages Specific Styles */

/* Legal Header */
.legal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.legal-header::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="legal-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><path d="M10,10 Q25,5 40,10 Q25,15 10,10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23legal-pattern)"/></svg>');
}

.legal-header .container {
    position: relative;
    z-index: 1;
}

.legal-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.legal-icon .material-icons {
    font-size: 3rem;
    color: white;
}

.legal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.legal-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.legal-meta {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.legal-date {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Legal Content */
.legal-content {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Sidebar */
.legal-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.legal-sidebar h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.legal-nav {
    display: flex;
    flex-direction: column;
}

.legal-nav-link {
    color: #666;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    font-weight: 500;
    position: relative;
}

.legal-nav-link:hover,
.legal-nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.legal-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: height 0.3s ease;
}

.legal-nav-link:hover::before,
.legal-nav-link.active::before {
    height: 100%;
}

/* Document */
.legal-document {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-left: 2rem;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    position: relative;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.legal-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legal-section ul,
.legal-section ol {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

/* Highlight Boxes */
.privacy-highlight,
.terms-highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.privacy-highlight .material-icons,
.terms-highlight .material-icons {
    color: #667eea;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.privacy-highlight strong,
.terms-highlight strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

/* Usage Grid */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.usage-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.usage-item:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.usage-item .material-icons {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usage-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.usage-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Sharing Policy */
.sharing-policy {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-left: 4px solid #28a745;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.policy-statement {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.policy-statement .material-icons {
    font-size: 2rem;
}

.policy-statement strong {
    font-size: 1.1rem;
    color: #333;
}

/* Security Measures */
.security-measures {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.security-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.security-item .material-icons {
    color: #28a745;
    font-size: 1.5rem;
}

.security-item strong {
    color: #333;
    margin-right: 0.5rem;
}

/* Rights List */
.rights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.right-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.right-item .material-icons {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-item .material-icons {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-item p {
    margin: 0;
    line-height: 1.6;
}

/* Acceptable Use */
.acceptable-use-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.use-category {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.use-category.allowed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
    border-left: 5px solid #28a745;
}

.use-category.prohibited {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
    border-left: 5px solid #dc3545;
}

.use-category h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.use-category.allowed h4 .material-icons {
    color: #28a745;
}

.use-category.prohibited h4 .material-icons {
    color: #dc3545;
}

.use-category ul {
    padding-left: 1rem;
}

.use-category li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.use-category.allowed li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.use-category.prohibited li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

/* Disclaimer Box */
.disclaimer-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-left: 4px solid #ffc107;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.disclaimer-box .material-icons {
    color: #ffc107;
    font-size: 2rem;
    margin-top: 0.25rem;
}

.disclaimer-box strong {
    color: #333;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.disclaimer-box p {
    margin: 0;
    line-height: 1.7;
}

/* Liability Limits */
.liability-limits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.liability-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.liability-item:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.liability-item .material-icons {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    font-size: 1.5rem;
}

.liability-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item .material-icons {
    color: #667eea;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Legal Footer */
.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.update-notice,
.acknowledgment {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left: 4px solid #667eea;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.update-notice .material-icons,
.acknowledgment .material-icons {
    color: #667eea;
    font-size: 2rem;
    margin-top: 0.25rem;
}

.update-notice strong,
.acknowledgment strong {
    color: #333;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .legal-document {
        margin-left: 0;
        margin-top: 2rem;
    }
    
    .legal-sidebar {
        position: static;
        max-height: none;
    }
    
    .acceptable-use-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .usage-grid {
        grid-template-columns: 1fr;
    }
    
    .rights-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .legal-header {
        padding: 6rem 0 3rem;
    }
    
    .legal-title {
        font-size: 2.5rem;
    }
    
    .legal-subtitle {
        font-size: 1rem;
    }
    
    .legal-document {
        padding: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.75rem;
    }
    
    .disclaimer-box,
    .privacy-highlight,
    .terms-highlight,
    .update-notice,
    .acknowledgment {
        flex-direction: column;
        text-align: center;
    }
    
    .liability-limits {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .legal-document {
        padding: 1.5rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .usage-item,
    .service-item,
    .right-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-nav-link {
        padding: 1rem;
        text-align: center;
    }
}
