.player-agreements-page {
    background: #f7f7f7;
}

.agreements-card {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    padding: 2rem 1.5rem;
}

.agreements-card__logo {
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.agreements-card__title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.agreements-card__intro {
    color: rgba(27, 27, 27, 0.75);
    max-width: 640px;
    margin: 0 auto;
}

.agreements-progress {
    margin: 1.5rem 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(225, 6, 0, 0.08);
    color: #1b1b1b;
    text-align: center;
}

.agreement-panel {
    border: 1px solid rgba(27, 27, 27, 0.12);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.agreement-panel.is-signed {
    border-color: rgba(40, 167, 69, 0.35);
    background: rgba(40, 167, 69, 0.04);
}

.agreement-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.agreement-panel__head h2 {
    font-size: 1.15rem;
    margin: 0;
}

.agreement-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.agreement-badge--signed {
    background: #28a745;
    color: #fff;
}

.agreement-badge--pending {
    background: #ffc107;
    color: #1b1b1b;
}

.agreement-panel__body {
    max-height: 420px;
    overflow: auto;
    padding-right: 0.25rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.agreement-panel__body h3 {
    font-size: 0.98rem;
    margin: 1.25rem 0 0.5rem;
}

.agreement-document__title {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.agreement-document__details {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0 1rem;
    font-size: 0.9rem;
}

.agreement-document__details th,
.agreement-document__details td {
    border: 1px solid rgba(27, 27, 27, 0.12);
    padding: 0.45rem 0.6rem;
    vertical-align: top;
    text-align: left;
}

.agreement-document__details th {
    width: 34%;
    background: rgba(225, 6, 0, 0.06);
    font-weight: 700;
}

.agreement-document ul {
    padding-left: 1.25rem;
    margin: 0.35rem 0 0.75rem;
}

.agreement-document p {
    margin: 0.35rem 0 0.75rem;
}

.agreement-document__footer-note {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(27, 27, 27, 0.1);
    font-size: 0.82rem;
    color: rgba(27, 27, 27, 0.7);
}

.agreement-panel__signed-meta {
    font-size: 0.92rem;
}

.agreement-signature-preview {
    max-width: 280px;
    border: 1px solid rgba(27, 27, 27, 0.12);
    border-radius: 8px;
    background: #fff;
}

.agreement-signature-pad {
    width: 100%;
    height: 160px;
    border: 2px dashed rgba(27, 27, 27, 0.18);
    border-radius: 12px;
    background: #fff;
    touch-action: none;
}

.agreement-clear-signature {
    margin-top: 0.5rem;
    border: 0;
    background: transparent;
    color: #e10600;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1rem 0;
    font-size: 0.92rem;
}

.agreements-complete {
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(40, 167, 69, 0.08);
}

.registration-alert--success {
    background: rgba(40, 167, 69, 0.12);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .agreements-card {
        padding: 1.25rem 1rem;
    }

    .agreement-panel__head {
        flex-direction: column;
        align-items: flex-start;
    }
}
