/* Shared legal pages — privacy & terms */

.legal-hero {
    position: relative;
    min-height: min(52vh, 460px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
}

.legal-hero__media {
    position: absolute;
    inset: 0;
}

.legal-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: legal-pan 18s ease-in-out infinite alternate;
}

.legal-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(0, 24, 70, 0.92), rgba(0, 35, 102, 0.62)),
        linear-gradient(to top, rgba(0, 15, 40, 0.8), transparent 50%);
}

.legal-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1120px, 92%);
    margin: 0 auto;
    padding: 4.5rem 0 3rem;
    animation: legal-rise 0.85s ease-out both;
}

.legal-hero__brand {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    line-height: 1;
}

.legal-hero__title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    margin: 0 0 0.75rem;
    max-width: 22ch;
    color: #ffd7b0;
    line-height: 1.2;
}

.legal-hero__lead {
    margin: 0 0 1.35rem;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
}

.legal-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

@keyframes legal-pan {
    from { transform: scale(1.05); }
    to { transform: scale(1.1) translate3d(-1%, -0.8%, 0); }
}

@keyframes legal-rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.legal-section {
    padding: 4.5rem 0;
}

.legal-section--alt {
    background: linear-gradient(180deg, #f4f6fa, #eef1f6);
}

.legal-section__head {
    margin-bottom: 1.75rem;
    max-width: 42rem;
}

.legal-section__head h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    color: #002366;
    margin: 0 0 0.5rem;
    line-height: 1.15;
    font-weight: 700;
}

.legal-section__head p,
.legal-prose p {
    margin: 0 0 1rem;
    color: #4a5568;
    line-height: 1.65;
    font-size: 1.02rem;
}

.legal-prose {
    max-width: 46rem;
}

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

.legal-meta {
    margin: 0 0 2rem;
    color: #64748b;
    font-size: 0.95rem;
}

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

.legal-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.2rem;
    color: #334155;
    line-height: 1.55;
    border-bottom: 1px solid rgba(0, 35, 102, 0.06);
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 0.4rem;
    height: 0.4rem;
    background: #ff7900;
}

.legal-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

.legal-cards article {
    background: #fff;
    padding: 1.5rem 1.25rem;
    border-top: 3px solid #ff7900;
}

.legal-section:not(.legal-section--alt) .legal-cards article {
    background: #f7f8fb;
}

.legal-cards h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    color: #002366;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.legal-cards p {
    margin: 0;
    color: #5a6577;
    line-height: 1.5;
    font-size: 0.95rem;
}

.legal-prose--follow {
    margin-top: 1.75rem;
}

.legal-contact-block {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.legal-contact-block__aside {
    background: #002366;
    color: #fff;
    padding: 1.75rem 1.5rem;
}

.legal-contact-block__aside h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.45rem;
    margin: 0 0 0.65rem;
    font-weight: 700;
}

.legal-contact-block__aside p {
    margin: 0 0 0.85rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

.legal-contact-block__aside a {
    color: #ffd7b0;
    text-decoration: none;
}

.legal-contact-block__aside a:hover {
    color: #fff;
}

.legal-cta {
    position: relative;
    padding: 5rem 0;
    color: #fff;
    overflow: hidden;
}

.legal-cta__media {
    position: absolute;
    inset: 0;
}

.legal-cta__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legal-cta__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(0, 28, 80, 0.92), rgba(0, 35, 102, 0.75));
}

.legal-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 40rem;
}

.legal-cta__inner h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    margin: 0 0 0.6rem;
    font-weight: 700;
}

.legal-cta__inner > p {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
}

@media (max-width: 992px) {
    .legal-cards {
        grid-template-columns: 1fr 1fr;
    }

    .legal-contact-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .legal-section {
        padding: 3.25rem 0;
    }

    .legal-hero {
        min-height: 48vh;
    }

    .legal-cards {
        grid-template-columns: 1fr;
    }

    .legal-hero__actions {
        width: 100%;
    }

    .legal-hero__actions .btn-ge,
    .legal-cta__inner .btn-ge {
        width: 100%;
    }
}
