.fc-register-legal-link {
    text-decoration: underline;
    font-weight: 600;
}

.fc-register-legal-link:hover {
    text-decoration: underline;
}

/* Same agreement modal look as booking.php (#fcAgreementModal) */
html.fc-agreement-open,
body.fc-agreement-open {
    overflow: hidden !important;
    height: 100% !important;
}

#fcRegisterLegalModal {
    overflow: hidden !important;
}

#fcRegisterLegalModal .modal-dialog {
    height: calc(100vh - 2rem);
    max-height: calc(100vh - 2rem);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#fcRegisterLegalModal .modal-content {
    height: 100%;
    max-height: 100%;
}

#fcRegisterLegalModal .modal-body {
    overflow-y: auto !important;
    max-height: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.fc-register-legal-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111;
}

.fc-register-legal-section {
    margin-bottom: 8px;
}

.fc-register-legal-divider {
    margin: 28px 0;
    border-color: #ddd;
}

.fc-agreement-content {
    color: #333;
    background: #f2f2f2;
    font-family: "Times New Roman", Times, serif;
    font-size: 0.95rem;
    line-height: 1.45;
    padding: 18px;
}

.fc-agreement-paper {
    max-width: 820px;
    min-height: 200px;
    margin: 0 auto;
    background: #fff;
    color: #111;
    border: 1px solid #d8d8d8;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.12);
    padding: 42px 52px;
}

.fc-agreement-pre {
    font-family: "Times New Roman", Times, serif;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #111;
    margin: 0;
    white-space: pre-wrap;
    word-break: normal;
    overflow-wrap: break-word;
    background: transparent;
    border: 0;
}

@media (max-width: 575px) {
    .fc-agreement-content {
        padding: 8px;
    }
    .fc-agreement-paper {
        padding: 24px 18px;
    }
}
