/* About / Legal Section Styles */
/* Modern, Customer-Focused Design for Cavuer */

/* ===== Main Container ===== */
.legal-main {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f0f9ff 100%);
    min-height: 100vh;
    padding: 120px 0 80px;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== HIDE SIDEBAR COMPLETELY ===== */
.legal-sidebar {
    display: none !important;
}

/* ===== Main Content Area ===== */
.legal-content {
    width: 100%;
    max-width: 100%;
}

.legal-title {
    font-size: 3rem;
    font-weight: 800;
    color: #12123e;
    margin: 0 0 60px;
    text-align: center;
    position: relative;
    letter-spacing: -0.5px;
}

.legal-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #03abc9, #6366f1);
    border-radius: 4px;
}

/* ===== Sections ===== */
.legal-section {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(29, 25, 145, 0.06);
    padding: 50px;
    margin-bottom: 40px;
    border: 1px solid rgba(99, 102, 241, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-section:hover {
    box-shadow: 0 20px 50px rgba(29, 25, 145, 0.12);
    transform: translateY(-4px);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #12123e;
    margin: 0 0 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 30px;
    background: linear-gradient(180deg, #03abc9, #6366f1);
    border-radius: 3px;
    flex-shrink: 0;
}

.section-content {
    color: #475569;
    line-height: 1.9;
    font-size: 1.1rem;
}

.section-content p {
    margin: 0 0 20px;
}

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

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 15px;
}

.service-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #03abc9, #6366f1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
    border-color: transparent;
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #03abc9 0%, #6366f1 100%);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(3, 171, 201, 0.25);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #12123e;
    margin: 0 0 12px;
}

.service-card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ===== Features Grid (Why Choose) ===== */
.legal-main .features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 24px;
    max-width: 100%;
}

.legal-main .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.legal-main .feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
    border-color: rgba(3, 171, 201, 0.3);
}

.legal-main .feature-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(3, 171, 201, 0.1);
}

/* Override main.css .feature-content fixed width/height */
.legal-main .feature-content {
    flex: 1;
    min-width: 0;
    width: auto;
    height: auto;
    padding: 0;
    padding-bottom: 8px;
    flex-direction: column;
    background-color: transparent;
    border: none;
    border-radius: 0;
    transition: none;
    box-shadow: none;
}

.legal-main .feature-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #12123e;
    margin: 0 0 10px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.legal-main .feature-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== Company Info Card ===== */
.company-info-card {
    background: linear-gradient(135deg, #12123e 0%, #1e1e4f 50%, #2d2d6d 100%);
    border-radius: 24px;
    padding: 45px;
    color: white;
    box-shadow: 0 25px 60px rgba(18, 18, 62, 0.35);
    position: relative;
    overflow: hidden;
}

.company-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(3, 171, 201, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row:first-child {
    padding-top: 0;
}

.info-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.05rem;
    color: white;
    font-weight: 500;
}

.info-value a {
    color: #5dd9f0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.info-value a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5dd9f0;
    transition: width 0.3s ease;
}

.info-value a:hover {
    color: #7ee8fc;
}

.info-value a:hover::after {
    width: 100%;
}

/* ===== Important Note ===== */
.important-note {
    margin-top: 35px;
    padding: 24px 30px;
    background: linear-gradient(135deg, rgba(3, 171, 201, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-left: 4px solid #03abc9;
    border-radius: 0 16px 16px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.important-note::before {
    content: '💡';
    font-size: 1.5rem;
}

.important-note p {
    margin: 0;
    color: #12123e;
    font-size: 1.05rem;
    font-weight: 500;
}

.important-note a {
    color: #03abc9;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.important-note a:hover {
    color: #6366f1;
}

/* ===== Legal Contact Footer ===== */
.legal-contact {
    text-align: center;
    padding: 50px 0 20px;
}

.legal-contact p {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.legal-contact a {
    color: #12123e;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(3, 171, 201, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    transition: all 0.3s ease;
}

.legal-contact a:hover {
    background: linear-gradient(135deg, #03abc9 0%, #6366f1 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3, 171, 201, 0.3);
}

/* ===== Responsive Styles ===== */
@media (max-width: 900px) {
    .legal-main {
        padding: 100px 0 60px;
    }
    
    .legal-container {
        padding: 0 24px;
    }
    
    .legal-title {
        font-size: 2.5rem;
    }
    
    .legal-section {
        padding: 40px 35px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .legal-main .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-row {
        grid-template-columns: 160px 1fr;
    }
}

@media (max-width: 640px) {
    .legal-main {
        padding: 90px 0 50px;
    }
    
    .legal-container {
        padding: 0 16px;
    }
    
    .legal-title {
        font-size: 2rem;
        margin-bottom: 45px;
    }
    
    .legal-section {
        padding: 32px 24px;
        margin-bottom: 24px;
        border-radius: 20px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }
    
    .section-content {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .service-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 18px;
    }
    
    .service-card h4 {
        font-size: 1.15rem;
    }
    
    .legal-main .feature-item {
        padding: 22px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .legal-main .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .legal-main .feature-content h4 {
        font-size: 1.1rem;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 0;
    }
    
    .info-label {
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 1rem;
    }
    
    .company-info-card {
        padding: 30px 24px;
    }
    
    .important-note {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .important-note::before {
        font-size: 2rem;
    }
    
    .legal-contact p {
        flex-direction: column;
        gap: 12px;
    }
    
    .legal-contact a {
        display: block;
        width: 100%;
        max-width: 200px;
    }
}

/* ===== Smooth Interactions ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Entrance Animations ===== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.legal-title {
    animation: fadeSlideUp 0.7s ease-out forwards;
}

.legal-section {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.legal-section:nth-child(1) { animation-delay: 0.1s; }
.legal-section:nth-child(2) { animation-delay: 0.2s; }
.legal-section:nth-child(3) { animation-delay: 0.3s; }
.legal-section:nth-child(4) { animation-delay: 0.4s; }

/* ===== Focus States for Accessibility ===== */
a:focus-visible {
    outline: 3px solid #03abc9;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== Print Styles ===== */
@media print {
    .legal-main {
        padding: 20px 0;
        background: white;
    }
    
    .legal-section {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
    }
    
    .legal-section:hover {
        transform: none;
    }
}