.legal-section {
    padding: 80px 0 120px;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbf7 100%);
    position: relative;
    overflow: hidden;
}

.legal-section::before,
.legal-section::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 106, 50, 0.12), transparent 70%);
    top: -140px;
    right: -80px;
    animation: legalFloat 18s ease-in-out infinite;
    pointer-events: none;
}

.legal-section::after {
    width: 260px;
    height: 260px;
    left: -120px;
    right: auto;
    bottom: 10%;
    top: auto;
    animation-delay: 5s;
}

.legal-decor-box {
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(11, 106, 50, 0.08), rgba(255, 255, 255, 0.05));
    filter: blur(0.5px);
    animation: legalSquare 20s linear infinite;
    pointer-events: none;
}

.legal-decor-box.box-1 {
    top: 15%;
    left: 8%;
}

.legal-decor-box.box-2 {
    bottom: 12%;
    right: 6%;
}

.legal-section .container {
    max-width: 1100px;
    padding: 0 24px;
}

.legal-intro h2 {
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.legal-intro p {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 18px;
    margin-bottom: 8px;
}

.legal-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 28px;
}

.legal-summary {
    background: #fff;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    margin-bottom: 40px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.legal-summary::before,
.legal-summary::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(11, 106, 50, 0.08), transparent 70%);
    top: -40px;
    right: -20px;
    pointer-events: none;
}

.legal-summary::after {
    width: 110px;
    height: 110px;
    bottom: -30px;
    left: -10px;
    top: auto;
}

.legal-summary > * {
    position: relative;
    z-index: 1;
}

.legal-summary h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-points li {
    position: relative;
    padding-inline-start: 28px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-points li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.legal-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.legal-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    position: relative;
    overflow: visible;
    padding-inline-start: 32px;
    border-inline-start: 4px solid rgba(11, 106, 50, 0.4);
    background: linear-gradient(90deg, rgba(11, 106, 50, 0.08), transparent 80%);
    opacity: 0;
    transform: translateY(18px);
    animation: legalRowIn 0.65s ease forwards;
}

.legal-card::after {
    content: '';
    position: absolute;
    inset-inline-start: 12px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: legalPulse 2.4s ease-in-out infinite;
}

.legal-card h3 {
    margin-top: 0;
}

.legal-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.legal-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
    margin: 0;
}

.legal-card:nth-child(1) { animation-delay: 0.05s; }
.legal-card:nth-child(2) { animation-delay: 0.1s; }
.legal-card:nth-child(3) { animation-delay: 0.15s; }
.legal-card:nth-child(4) { animation-delay: 0.2s; }
.legal-card:nth-child(5) { animation-delay: 0.25s; }
.legal-card:nth-child(6) { animation-delay: 0.3s; }
.legal-card:nth-child(7) { animation-delay: 0.35s; }
.legal-card:nth-child(8) { animation-delay: 0.4s; }
.legal-card:nth-child(9) { animation-delay: 0.45s; }

@media (hover: hover) {
    .legal-card:hover {
        background: linear-gradient(90deg, rgba(11, 106, 50, 0.15), transparent 90%);
        border-inline-start-color: var(--primary-color);
    }
}

@media (min-width: 992px) {
    .legal-card {
        flex-direction: row;
        align-items: baseline;
        gap: 16px;
        padding-block: 18px;
    }

    .legal-card h3 {
        flex: 0 0 260px;
        margin-bottom: 0;
    }

    .legal-card p {
        flex: 1;
    }
}

.legal-contact {
    margin-top: 60px;
    background: linear-gradient(120deg, var(--primary-color), var(--primary-light));
    border-radius: 32px;
    padding: 40px;
    color: #fff;
    text-align: center;
    box-shadow: 0 25px 70px rgba(11, 106, 50, 0.35);
}

.legal-contact h3 {
    font-size: clamp(26px, 3vw, 34px);
    margin-bottom: 12px;
}

.legal-contact p {
    line-height: 1.9;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.9);
}

.legal-contact .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    border-radius: 18px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .legal-section {
        padding: 60px 0 90px;
    }

    .legal-summary {
        padding: 24px;
    }

    .legal-card {
        padding: 24px;
    }

    .legal-contact {
        padding: 32px 24px;
    }
}

@keyframes legalFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.04); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes legalSquare {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(14px, -12px) rotate(6deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes legalRowIn {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes legalPulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.35); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.9; }
}

