/** legal & compliance styling for privacy-policy, delete-account, and dsb app showcase **/

.legal-section {
    position: relative;
    padding: 90px 0 100px 0;
    background: #ffffff;
}

.legal-content-card {
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 8px;
    padding: 45px 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.legal-content-card h3 {
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
    color: #1c2539;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f5;
}

.legal-content-card h4 {
    font-size: 17px;
    line-height: 26px;
    font-weight: 600;
    color: #117036;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-content-card p {
    font-size: 15px;
    line-height: 28px;
    color: #555555;
    margin-bottom: 16px;
}

.legal-list {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-list li {
    position: relative;
    font-size: 15px;
    line-height: 26px;
    color: #555555;
    margin-bottom: 10px;
    list-style-type: disc;
}

.legal-highlight-box {
    background: #f7faf8;
    border-left: 4px solid #117036;
    padding: 20px 25px;
    border-radius: 4px;
    margin: 25px 0;
}

.legal-highlight-box p {
    margin-bottom: 0;
    font-weight: 500;
    color: #1c2539;
}

.legal-warning-box {
    background: #fff9f4;
    border-left: 4px solid #f37023;
    padding: 20px 25px;
    border-radius: 4px;
    margin: 25px 0;
}

.legal-warning-box p {
    margin-bottom: 0;
    font-weight: 500;
    color: #1c2539;
}

.step-flow-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.step-flow-card:hover {
    border-color: #117036;
    box-shadow: 0 12px 30px rgba(17, 112, 54, 0.08);
}

.step-flow-card .step-badge {
    display: inline-block;
    align-self: flex-start;
    background: #117036;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.step-flow-card h4 {
    font-size: 18px;
    color: #1c2539;
    margin-bottom: 10px;
}

.step-flow-card p {
    font-size: 14px;
    line-height: 24px;
    color: #64748b;
    margin-bottom: 20px;
}

.step-flow-card .step-mockup-wrapper {
    margin-top: auto;
    padding-top: 10px;
}

.qr-download-card {
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.qr-download-card .store-icon {
    font-size: 40px;
    color: #117036;
    margin-bottom: 15px;
}

.qr-download-card h4 {
    font-size: 20px;
    color: #1c2539;
    margin-bottom: 10px;
}

.qr-download-card p {
    font-size: 14px;
    color: #666666;
    margin-bottom: 20px;
}

.qr-frame {
    display: inline-block;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.qr-frame svg {
    display: block;
}

/* ==========================================================================
   Realistic Smartphone Mockup Frame Component
   ========================================================================== */
.dsb-phone-mockup {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 270px;
    background: #0f172a;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 
        0 0 0 2px #334155,
        0 0 0 5px #1e293b,
        0 20px 40px -10px rgba(0, 0, 0, 0.4),
        0 8px 16px -4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dsb-phone-mockup:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 0 2px #117036,
        0 0 0 5px #1e293b,
        0 25px 50px -10px rgba(17, 112, 54, 0.25),
        0 10px 20px -4px rgba(0, 0, 0, 0.2);
}

.dsb-phone-mockup .phone-notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 16px;
    background: #000000;
    border-radius: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 9px;
}

.dsb-phone-mockup .phone-notch::before {
    content: '';
    position: absolute;
    left: 16px;
    width: 28px;
    height: 3px;
    background: #1e293b;
    border-radius: 2px;
}

.dsb-phone-mockup .phone-notch .camera-lens {
    width: 7px;
    height: 7px;
    background: #064e3b;
    border: 1px solid #1e293b;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.4);
}

.dsb-phone-mockup .phone-screen {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #000000;
    aspect-ratio: 596 / 1280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsb-phone-mockup .phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dsb-phone-mockup .phone-glare {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 65%);
    pointer-events: none;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    z-index: 5;
}

/* Dual Overlapping Phone Presentation */
.dsb-dual-phones {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
    min-height: 520px;
}

.dsb-dual-phones .phone-back {
    position: relative;
    width: 245px;
    z-index: 1;
    opacity: 1;
    margin-right: -60px;
    transform: rotate(-5deg) translateY(-25px) scale(0.96);
    box-shadow: -15px 25px 50px rgba(0, 0, 0, 0.4);
    transition: transform 400ms ease, box-shadow 400ms ease;
}

.dsb-dual-phones .phone-front {
    position: relative;
    width: 260px;
    z-index: 2;
    transform: rotate(4deg);
    box-shadow: 15px 30px 60px rgba(0, 0, 0, 0.45);
    transition: transform 400ms ease, box-shadow 400ms ease;
}

.dsb-dual-phones:hover .phone-back {
    transform: rotate(-8deg) translateX(-20px) translateY(-35px) scale(0.98);
}

.dsb-dual-phones:hover .phone-front {
    transform: rotate(6deg) translateX(15px) translateY(5px);
}

@media (max-width: 991px) {
    .dsb-dual-phones {
        min-height: auto;
        padding: 15px 0;
        margin-bottom: 40px;
        flex-direction: row;
        gap: 15px;
    }
    .dsb-dual-phones .phone-back {
        width: 200px;
        margin-right: -45px;
        transform: rotate(-4deg) translateY(-15px) scale(0.96);
    }
    .dsb-dual-phones .phone-front {
        width: 215px;
        transform: rotate(3deg);
    }
}

@media (max-width: 575px) {
    .dsb-dual-phones {
        flex-direction: column;
        gap: 30px;
    }
    .dsb-dual-phones .phone-back,
    .dsb-dual-phones .phone-front {
        position: relative;
        margin: 0 auto;
        transform: none;
        width: 100%;
        max-width: 250px;
    }
    .dsb-dual-phones:hover .phone-back,
    .dsb-dual-phones:hover .phone-front {
        transform: none;
    }
}

@media (max-width: 768px) {
    .legal-content-card {
        padding: 25px 20px;
    }
    .step-flow-card {
        padding: 22px 18px;
    }
}
