@import url('./global.css');

.charter-page {
    background: linear-gradient(180deg, rgba(244, 248, 255, 0.96) 0%, rgba(232, 241, 255, 0.94) 100%);
    color: var(--primary-clr);
}

.charter-hero {
    background:
        linear-gradient(135deg, rgba(1, 37, 130, 0.88), rgba(0, 154, 195, 0.78)),
        url(../transact-bg.png) no-repeat center center;
    background-size: cover;
    padding: 3.9rem 1rem 4.2rem;
}

.charter-hero-shell {
    max-width: 76rem;
}

.charter-hero-copy {
    max-width: 48rem;
    margin: 0 auto;
}

.charter-hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.charter-hero-title {
    margin-top: 1rem;
}

.charter-hero-lead {
    max-width: 44rem;
    margin: 0.95rem auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
}

.charter-section {
    padding: 0 1rem 3.25rem;
}

.charter-shell {
    width: min(76rem, 100%);
    margin: -1.75rem auto 0;
}

.charter-overview-card,
.charter-document-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(1, 37, 130, 0.08);
    box-shadow: 0 20px 42px rgba(1, 25, 85, 0.1);
}

.charter-overview-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.45rem 1.5rem;
    margin-bottom: 1.5rem;
}

.charter-overview-copy {
    flex: 1 1 34rem;
}

.charter-overview-label,
.charter-document-label {
    margin: 0 0 0.4rem;
    color: rgba(1, 37, 130, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.charter-overview-title,
.charter-document-title {
    margin: 0;
    color: var(--primary-clr);
    font-size: clamp(1.5rem, 2vw, 1.95rem);
    line-height: 1.15;
}

.charter-overview-text {
    max-width: 44rem;
    margin: 0.8rem 0 0;
    color: rgba(1, 37, 130, 0.76);
    line-height: 1.7;
}

.charter-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.charter-action-button,
.charter-secondary-button,
.charter-mobile-button {
    min-height: 3.15rem;
    padding-inline: 1.2rem;
    border-radius: 14px;
    font-weight: 700;
}

.charter-secondary-button {
    border: 1px solid rgba(1, 37, 130, 0.14);
    background: rgba(1, 37, 130, 0.04);
    color: var(--primary-clr);
}

.charter-secondary-button:hover,
.charter-secondary-button:focus-visible {
    background: rgba(1, 37, 130, 0.1);
    color: var(--primary-clr);
}

.charter-document-card {
    padding: 1.4rem;
}

.charter-document-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.charter-document-note {
    margin: 0;
    color: rgba(1, 37, 130, 0.62);
    line-height: 1.6;
}

.charter-pdf-frame {
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(243, 247, 255, 0.96), rgba(232, 240, 255, 0.9));
    border: 1px solid rgba(1, 37, 130, 0.08);
}

.charter-pdf-object {
    display: block;
    width: 100%;
    height: 78vh;
    min-height: 42rem;
}

.charter-fallback {
    display: grid;
    place-items: center;
    min-height: 28rem;
    padding: 2rem;
    text-align: center;
    color: rgba(1, 37, 130, 0.72);
}

.charter-fallback p {
    margin-bottom: 0.75rem;
}

.charter-mobile-card {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.95rem;
    padding: 1.25rem 0.2rem 0.1rem;
}

.charter-mobile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 204, 46, 0.22), rgba(255, 204, 46, 0.38));
    color: var(--primary-clr);
    font-size: 1.7rem;
}

.charter-mobile-title {
    margin: 0;
    color: var(--primary-clr);
    font-size: 1.35rem;
    line-height: 1.3;
}

.charter-mobile-text {
    max-width: 34rem;
    margin: 0;
    color: rgba(1, 37, 130, 0.74);
    line-height: 1.7;
}

@media screen and (max-width: 1023px) {
    .charter-hero {
        padding: 3.45rem 1rem 3.8rem;
    }

    .charter-shell {
        margin-top: -1.45rem;
    }

    .charter-document-card {
        padding: 1.2rem;
    }

    .charter-pdf-object {
        height: 68vh;
        min-height: 34rem;
    }
}

@media screen and (max-width: 768px) {
    .charter-section {
        padding: 0 0.9rem 2.6rem;
    }

    .charter-overview-card,
    .charter-document-card {
        border-radius: 20px;
    }

    .charter-overview-card,
    .charter-document-card {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .charter-action-row {
        width: 100%;
        justify-content: stretch;
    }

    .charter-action-button,
    .charter-secondary-button,
    .charter-mobile-button {
        width: 100%;
        justify-content: center;
    }

    .charter-mobile-card {
        padding-top: 1rem;
    }
}
