/* LEGAL & PRACTICE AREA PAGES STYLES - ENTERPRISE GRADE */

.legal-hero {
    background: linear-gradient(135deg, #E0F5F3 0%, #F1F9F9 100%);
    border-radius: 40px;
    padding: 0 0 40px 0;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(7, 184, 166, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.legal-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 150px 24px 40px 24px;
    position: relative;
    z-index: 2;
}

.legal-hero .trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #FFFFFF;
    border: 1px solid rgba(7, 184, 166, 0.3);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 13.5px;
    font-weight: 700;
    color: #07B8A6;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(7, 184, 166, 0.08);
}

.legal-hero-content h1 {
    font-size: 46px;
    font-weight: 800;
    color: var(--text-dark, #0F172A);
    margin-bottom: 18px;
    letter-spacing: -1px;
    line-height: 1.15;
}

.legal-hero-content p {
    font-size: 18px;
    color: #475569;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
}

.legal-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 2-COLUMN LAYOUT GRID */
.legal-content {
    padding: 0 24px 120px 24px;
}

.legal-layout-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

/* MAIN CONTENT CONTAINER */
.legal-main-col {
    background-color: #FFFFFF;
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.06);
}

.legal-main-col h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
    margin-top: 48px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-main-col h2:first-child {
    margin-top: 0;
}

.legal-main-col h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    margin-top: 36px;
    margin-bottom: 16px;
}

.legal-main-col p, .legal-main-col ul {
    font-size: 16px;
    color: #475569;
    line-height: 1.85;
    margin-bottom: 24px;
}

.legal-main-col ul {
    padding-left: 20px;
}

.legal-main-col li {
    margin-bottom: 12px;
}

/* IMAGE BANNER CARD */
.legal-image-banner {
    width: 100%;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.legal-image-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.legal-image-banner:hover img {
    transform: scale(1.03);
}

.legal-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 32px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legal-image-overlay span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #E0F5F3;
}

/* FEATURE CARDS GRID */
.legal-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 36px 0;
}

.legal-feature-card {
    background: #F8FAFC;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.legal-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(7, 184, 166, 0.08);
    border-color: #07B8A6;
}

.legal-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(7, 184, 166, 0.12);
    color: #07B8A6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.legal-feature-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.legal-feature-card p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 0;
}

/* STEP-BY-STEP CHECKLIST */
.legal-step-list {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legal-step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 20px 24px;
    border-radius: 20px;
    transition: border-color 0.2s;
}

.legal-step-item:hover {
    border-color: #07B8A6;
}

.legal-step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--text-dark, #0F172A);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-step-content h5 {
    font-size: 17px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

.legal-step-content p {
    font-size: 14.5px;
    color: #64748B;
    margin-bottom: 0;
}

/* WARNING / ALERT CALLOUT */
.legal-warning-box {
    background: #FFF7ED;
    border-left: 4px solid #F97316;
    border-radius: 16px;
    padding: 24px;
    margin: 36px 0;
}

.legal-warning-box h4 {
    color: #9A3412;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-warning-box p {
    color: #C2410C;
    font-size: 14.5px;
    margin-bottom: 0;
    line-height: 1.7;
}

/* FAQ ACCORDION COMPONENT */
.legal-faq-section {
    margin-top: 48px;
}

.legal-faq-item {
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.legal-faq-question {
    padding: 20px 24px;
    background: #F8FAFC;
    font-weight: 700;
    font-size: 16.5px;
    color: #0F172A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.legal-faq-question:hover {
    background: #F1F5F9;
    color: #07B8A6;
}

.legal-faq-answer {
    padding: 0 24px 20px 24px;
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    display: none;
}

.legal-faq-item.active .legal-faq-answer {
    display: block;
}

.legal-faq-item.active .legal-faq-question {
    background: #FFFFFF;
    color: #07B8A6;
}

.legal-faq-icon {
    transition: transform 0.3s ease;
}

.legal-faq-item.active .legal-faq-icon {
    transform: rotate(180deg);
}

/* STICKY SIDEBAR */
.legal-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px 28px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 15px 30px rgba(0,0,0,0.03);
}

.sidebar-card-cta {
    background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
}

.lawyer-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.lawyer-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2.5px solid #07B8A6;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(7, 184, 166, 0.2);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.sidebar-card-cta h4 {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.sidebar-card-cta p {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.sidebar-btn-whatsapp {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #FFFFFF;
    padding: 16px 20px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.25);
}

.sidebar-btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.35);
}

.sidebar-trust-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: #CBD5E1;
}

/* PRACTICE LINKS SIDEBAR */
.sidebar-links-title {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 16px;
}

.sidebar-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-link-item:hover {
    background: #F1F5F9;
    color: #07B8A6;
    transform: translateX(4px);
}

.sidebar-link-item.active {
    background: rgba(7, 184, 166, 0.1);
    color: #07B8A6;
}

/* DEDICATED LEGAL PAGE CARDS & LGPD STYLING */

.legal-section-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    scroll-margin-top: 140px;
}

.legal-section-card:hover {
    border-color: rgba(7, 184, 166, 0.3);
    box-shadow: 0 16px 40px rgba(7, 184, 166, 0.08);
}

.legal-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 16px;
}

.legal-section-num {
    font-size: 16px;
    font-weight: 800;
    color: #07B8A6;
    background: rgba(7, 184, 166, 0.1);
    padding: 6px 14px;
    border-radius: 12px;
    letter-spacing: 1px;
}

.legal-card-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 !important;
    line-height: 1.25;
    letter-spacing: -0.4px;
}

.legal-highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 16px;
    padding: 20px;
    margin-top: 24px;
}

.legal-highlight-box strong {
    display: block;
    color: #166534;
    font-size: 15px;
    margin-bottom: 4px;
}

.legal-highlight-box p {
    color: #15803D;
    font-size: 14px;
    margin: 0 !important;
    line-height: 1.5;
}

.legal-grid-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.legal-item-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px;
}

.legal-item-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.legal-styled-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-top: 20px !important;
}

.legal-styled-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 15.5px;
    color: #334155;
    line-height: 1.6;
}

.legal-styled-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #07B8A6;
    font-weight: 900;
    font-size: 16px;
}

.lgpd-rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.lgpd-right-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.2s ease;
}

.lgpd-right-card:hover {
    transform: translateY(-3px);
    border-color: #07B8A6;
}

.lgpd-right-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.lgpd-right-card p {
    font-size: 13.5px;
    color: #64748B;
    margin: 0 !important;
    line-height: 1.5;
}

.legal-meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.legal-meta-item {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-index-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.legal-index-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-index-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-index-list li {
    margin-bottom: 8px;
}

.legal-index-list a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.legal-index-list a:hover,
.legal-index-list a.active {
    background: rgba(7, 184, 166, 0.1);
    color: #07B8A6;
    transform: translateX(4px);
}

.legal-help-card {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: 20px;
    padding: 28px;
    color: #FFFFFF;
    text-align: center;
}

.help-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.legal-help-card h4 {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.legal-help-card p {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.5;
    margin-bottom: 20px;
}

.legal-help-card .btn-solid {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .legal-grid-items, .lgpd-rights-grid {
        grid-template-columns: 1fr;
    }
    .legal-section-card {
        padding: 24px 18px;
        border-radius: 18px;
    }
    .legal-card-header h2 {
        font-size: 20px;
    }
}

/* RESPONSIVE DESIGN FOR ENTERPRISE MOBILE & TABLET */
@media (max-width: 1024px) {
    .legal-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .legal-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        border-radius: 28px;
        margin-bottom: 32px;
    }
    .legal-hero-content {
        padding-top: 85px !important;
        padding-bottom: 24px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .legal-hero-content h1 {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 12px;
    }
    .legal-hero-content p {
        font-size: 15px;
        margin-bottom: 24px;
    }
    .legal-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .legal-hero-actions .btn-solid {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 15px;
    }
    .legal-content {
        padding: 0 16px 80px 16px;
    }
    .legal-main-col {
        padding: 24px 18px;
        border-radius: 20px;
    }
    .legal-main-col h2 {
        font-size: 22px;
        margin-top: 36px;
    }
    .legal-feature-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .legal-feature-card {
        padding: 18px;
        border-radius: 16px;
    }
    .legal-image-banner {
        height: 210px;
        border-radius: 16px;
        margin-bottom: 28px;
    }
    .legal-image-overlay {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .legal-image-overlay span {
        font-size: 12px;
    }
    .legal-step-item {
        padding: 16px;
        border-radius: 16px;
        gap: 14px;
    }
    .legal-step-num {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .legal-step-content h5 {
        font-size: 15.5px;
    }
    .legal-step-content p {
        font-size: 13.5px;
    }
    .legal-warning-box {
        padding: 18px;
        border-radius: 14px;
    }
    .legal-faq-question {
        padding: 16px 18px;
        font-size: 15px;
    }
    .legal-faq-answer {
        padding: 0 18px 16px 18px;
        font-size: 14px;
    }
    .sidebar-card {
        padding: 24px 18px !important;
        border-radius: 20px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    .sidebar-card h3, .sidebar-card h4 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    .sidebar-card p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }
    .sidebar-btn-whatsapp {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 16px !important;
        font-size: 14.5px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .legal-hero-content h1 {
        font-size: 24px;
    }
    .legal-image-banner {
        height: 180px;
    }
}
