/* Legal Pages Styles (Privacy Policy & Terms of Service) */

/* Hero Section - Legal Pages */
.legal-hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.5) 0%, rgba(33, 150, 243, 0.55) 100%),
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80') center/cover;
    margin-top: 0;
    font-family: var(--font-secondary);
}

/* Dark Overlay */
.legal-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

/* Grid Overlay */
.legal-hero .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(66, 133, 244, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 133, 244, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
}

/* Accent Lines */
.legal-hero .accent-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.5), transparent);
    z-index: 3;
}

.legal-hero .line-1 {
    top: 25%;
    left: 0;
    width: 100%;
    height: 2px;
    animation: lineSlide 3s ease-in-out infinite;
}

.legal-hero .line-2 {
    top: 65%;
    left: 0;
    width: 100%;
    height: 2px;
    animation: lineSlide 3s ease-in-out infinite reverse;
}

@keyframes lineSlide {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hero Content */
.legal-hero .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 0 40px;
}

.legal-hero .beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(66, 133, 244, 0.15);
    border: 2px solid rgba(66, 133, 244, 0.5);
    color: rgba(255, 255, 255, 0.95);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 1s ease-out;
}

.legal-hero .beta-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.legal-hero .hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.legal-hero .hero-title .highlight {
    color: #4CAF50;
    text-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
}

.legal-hero .hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content Section */
.legal-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Last Updated Badge */
.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e3f2fd;
    color: #1976d2;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 40px;
    border-left: 4px solid #1976d2;
}

.last-updated i {
    font-size: 16px;
}

/* Legal Sections */
.legal-section {
    margin-bottom: 50px;
}

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

.legal-section h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section .section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #ffffff;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.legal-section h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 25px 0 15px;
    font-weight: 600;
}

.legal-section h4 {
    font-size: 1.1rem;
    color: #34495e;
    margin: 15px 0 10px;
    font-weight: 600;
}

.legal-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.legal-section p.lead {
    font-size: 1.15rem;
    color: #333;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.legal-section ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.legal-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: 700;
    font-size: 1.2rem;
}

.legal-section ul li strong {
    color: #2c3e50;
    font-weight: 600;
}

.legal-section a {
    color: #1976d2;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: #1565c0;
    border-bottom-color: #1565c0;
}

/* Security Measures Grid */
.security-measures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.measure-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.measure-item:hover {
    background: #ffffff;
    border-color: #4CAF50;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.15);
}

.measure-item i {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 15px;
    display: block;
}

.measure-item h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 10px 0;
    font-weight: 600;
}

.measure-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Note Box */
.note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.note i {
    color: #ff9800;
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.note p {
    margin: 0;
    text-align: left;
}

.note strong {
    color: #f57c00;
}

/* Contact Section in Legal Pages */
.contact-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: #4CAF50;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.contact-item p {
    margin: 0;
    text-align: left;
}

.acceptance-note {
    background: #e8f5e9;
    border: 2px solid #4CAF50;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.acceptance-note i {
    color: #4CAF50;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.acceptance-note p {
    margin: 0;
    color: #2e7d32;
    text-align: left;
}

.acceptance-note strong {
    color: #1b5e20;
}

/* CTA Section */
.legal-cta {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.legal-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.legal-cta .lead {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

.legal-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: #ffffff;
    color: #4CAF50;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.legal-cta .btn:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.legal-cta .btn i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-hero .hero-title {
        font-size: 2.5rem;
    }

    .legal-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .content-wrapper {
        padding: 30px 20px;
    }

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

    .legal-section .section-number {
        min-width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .legal-section p,
    .legal-section ul li {
        font-size: 1rem;
        text-align: left;
    }

    .security-measures {
        grid-template-columns: 1fr;
    }

    .legal-cta h2 {
        font-size: 1.8rem;
    }

    .legal-cta .lead {
        font-size: 1rem;
    }

    .contact-section {
        padding: 25px 20px;
    }

    .note {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .legal-hero {
        min-height: 45vh;
    }

    .legal-hero .hero-content {
        padding: 0 20px;
    }

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

    .legal-hero .hero-subtitle {
        font-size: 1rem;
    }

    .legal-content {
        padding: 40px 0;
    }

    .content-wrapper {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .legal-section {
        margin-bottom: 35px;
    }

    .legal-section h2 {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .legal-cta {
        padding: 50px 20px;
    }

    .legal-cta .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
